Hosting Yii framework with 000webhost.com

Hello all Friend

Please help solve error. When i hosting with yii with 000webhost.com and I configure database below

           'db'=>array(


		'connectionString' => 'mysql:host=server38.000webhost.com;dbname=a2264506_leanghy',


		'emulatePrepare' => true,


		'username' => 'a2264506_******',


		'password' => '*****',


		'charset' => 'utf8',


	),

and then show message error with attach below file6437

error yii hosting with 000webhost.png
.

Hi,

Usually we only allow localhost connection to db server. Have you tried this one?




'connectionString' => 'mysql:host=localhost;dbname=a2264506_leanghy',



If you must use server name, make sure that you set the user to allow connect from other server.

Hi Daniel,

Thank you very much brother, But this one I was use already but still error the same. Do you have another way?