Database Error

**My website URL is: http://www.hngcodelegions.rf.gd/

**What I’m seeing is: Connection failed: Access denied for user ‘epiz_24515970’@‘192.168.2.198’ (using password: YES)

Additional information:

I am trying to connect to the database but I am unable to. I am also sure i am using the right parameters.
define(‘DBHOST’, ‘sql304.epizy.com’);
define(‘DBUSER’, ‘epiz_24515970’);
define(‘DBPASS’, ‘L*******’);
define(‘DBNAME’, ‘epiz_24515970_legion’);

$dbc = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME);
if(!$dbc){
      echo "Connection failed: ".mysqli_connect_error();
      exit;
} else {
      return $dbc;
}

I don’t know why it still brings the error

You should check:

Your database password is not your client account password. It’ll be your site control panel password. To see your db pass. Go to client area and your site account then click on show password.

If you change your FTP password, due the weird reasons. It won’t apply for Databases. You’ll need to wait for admin till he refreshs your FTP data

2 Likes

It looks like your database permissions got corrupted. I’ve reset them and it looks like your website is loading again now.

4 Likes

Okay, it is okay now…
Thanks

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