Hosting Yii framework with

Hello all Friend

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


		'connectionString' => ';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


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?