DB Connection Error (CDbException)


I have try to connect db but not connect. I have some error occur.

Warning: PDO::__construct() [pdo.--construct]: [2002] Socket operation on non-socket (trying to connect via unix:///tmp/mysql.sock) in /usr/www/users/kmorita/sample/celga/yii/framework/db/CDbConnection.php on line 422


CDbConnection failed to open the DB connection.

We have using PHP Version 5.3.29.

How to fix this error.

Please help.

is your mysql running? make sure

Hi alirz23 ,

It sure, MySQL is running.