MySQL PHP Connection

Would a password mismatch be the reason I cannot connect a php script to a MySQL database?

$db_host = ‘sql306.ezyro.com’;
$db_user = ‘ezyro_40829244’;
$db_pass = ‘PASSWORD’;
$db_name = ‘ezyro_40829244_Client_List’;
$db_port = 3306;

That returns this partial error:
{ “status”: “failure”, “error_code”: 1045, “error_message”: “Access denied for user ‘ezyro_40829244’@‘192.168.0.110’ (using password: YES)”,

All the info came from my account under MySQL Databases (password is not PASSWORD)

Make sure you are using the same password for mysql as that of your web account password from PFH clientarea because this will change password for your

  • Main cpanel
  • FTP account
  • MySQL account

I am, but it still returns the error> Could it be the same password mismatch as the other issue?

No, this is not because of that. You are probably using wrong credentials.

I’m getting the password here:

I’m getting the other credentials here:

So what am I missing? Port maybe? You can see in the images the credentials are correct.

Port is optional and it’s default 3306 so it’s fine.

Can you share a test url for mysql connection?