Hello All,
Could anyone help me in that?
I was using Yii to build my website which use database on server 67.23.247.28…
I moved my website to another server in different hosting company but when i tried to access database i got this error
CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2013] Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111
this is my connection settings in the main.php file
‘db’=>array(
'connectionString' => 'mysql:host=67.23.247.28;dbname=postrecc_postrec',
'emulatePrepare' => true,
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
),