SQL Access Denied for user using password

**My website URL is: puneftpo.epizy.com **

What I’m seeing is:

MYSQLI Error: Cannot Connect to Database.

Warning : mysqli::__construct(): (HY000/1045): Access denied for user ‘epiz_25301947’@‘192.168.0.43’ (using password: YES) in /home/vol10_5/epizy.com/epiz_25301947/htdocs/db.php on line 6

** MY CODE **

$host = ‘sql205.epizy.com’;

$user = ‘epiz_25301947’;

$pass = ‘XXXXXXX’;

$db = ‘epiz_25301947_ftpo’;

$mysqli = new mysqli($host,$user,$pass,$db) or die($mysqli->error);

Yes I followed all the steps like using hosting password, using proper host and username too. Can’t get it working. However I can use phpmyadmin. Also I am using php scripts from infinity servers only, uploaded to my above mentioned website.

Additional information:

Searched the forums, but could only find answers like check credentials and stuff. One time I found that infinity admins changed a user’s database permissions @Mark_libres and it worked for that user then. Would that be a problem here?

Try to change your hosting account password from the “Edit Account” page, then wait a while and change the credentials on your config file with your new ones, in order for the database to be working again.

3 Likes

Check the query code directly in phpmyadmin., see what’s wrong there

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.