Loicyeu
November 15, 2017, 6:51pm
#1
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
Loicyeu
November 15, 2017, 7:58pm
#3
Thank you but were can i have this information because i have test all the possibilities i think…
1 Like
Loicyeu
November 15, 2017, 8:37pm
#5
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
Try again and post your results of the MySQL connection error like bad password… would be bad password.
1 Like