My DB connection works perfectly in web application. But when I try the same settings in console application it fails (I wrote connection settings in console.php file).
CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'username'@'host' (using password: YES)
I can't solve problem for 4 hours. What might be wrong?