Cdbconnection Failed To Open The Db Connection

I got the error message on a hosted web site:

CDbConnection failed to open the DB connection

Is there anyway I can dump the database connection parameters to verify? including host/id/password/database. I thought I make everything right already. No idea why the connection still fail.

If you have logging on, you can check your log in protected/runtime.

This doesn’t answer your question directly, but:

Is this a MySQL database? Are you able to connect to the DB outside of Yii? E.g., can you establish a connection with your database via phpMyAdmin?



Thank you! The log gave me very helpful message.