WebSite Problem MySQL

I have a website on 000webhost but when i want to use MySQL that dosn’t works… I’ve written this:

<?php try { $bdd = new PDO('mysql:host=localhost;dbname=id3237283_loicyeu;charset=utf8', 'loicyeu.games', 'PASSWORD'); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } ?>

and on my website page :
Erreur : SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ‘loicyeu.games’@‘2a02:4780:bad:f00d::e’ (using password: YES)

can everybody help me ?

This says your dbuser or dbpass is incorrect :slight_smile:

Thank you but were can i have this information because i have test all the possibilities i think…

1 Like

Cpanel>Manage databases

Yes but i have already test all this

Try again, set the password on 000webhost.com > Manage Password to that of what you see in your script config file.

1 Like

that doesn’t work again…

Try again and post your results of the MySQL connection error like bad password… would be bad password.

1 Like