Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hi I am new to ubuntu and php mysql, i have intalled xampp and learning Yii, but while testing a script i got this problem, not able to figure out the solution, i have been through many forums solutions but none of them worked for me.

Please help.

1) DbTest::testConnection
CDbException: CDbConnection failed to open the DB connection.

/opt/lampp/htdocs/YiiRoot/framework/db/CDbConnection.php:388

/opt/lampp/htdocs/YiiRoot/framework/db/CDbConnection.php:331

/opt/lampp/htdocs/YiiRoot/framework/db/CDbConnection.php:309

/opt/lampp/htdocs/YiiRoot/framework/base/CModule.php:388

/opt/lampp/htdocs/YiiRoot/framework/base/CModule.php:104

/opt/lampp/htdocs/trackstar/protected/tests/unit/DbTest.php:6

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.