mySQL connection timing out from PHP

My PHP to mySQL connection keeps timing out, how do I fix this?

Warning: mysqli::__construct(): (HY000/2002): Connection timed out in /home/vol3_6/rf.gd/myusername/htdocs/submit.php on line 32 Connection failed: Connection timed out

Do you still experience this problem? It could be a minor outage on the database server if it has been resolved already.

@Admin said:
Do you still experience this problem? It could be a minor outage on the database server if it has been resolved already.

Yes, it is still timing out.

@zanderl said:

@Admin said:
Do you still experience this problem? It could be a minor outage on the database server if it has been resolved already.

Yes, it is still timing out.

With which account/website do you experience this problem? You have multiple accounts, all with different database servers.

@Admin said:

@zanderl said:

@Admin said:
Do you still experience this problem? It could be a minor outage on the database server if it has been resolved already.

Yes, it is still timing out.

With which account/website do you experience this problem? You have multiple accounts, all with different database servers.

The ididgood.rf.gd one.

I checked the script, you’re not using the correct MySQL hostname. It should be something like sql123.rf.gd, not your username.

@Admin said:
I checked the script, you’re not using the correct MySQL hostname. It should be something like sql123.rf.gd, not your username.

I apologize, I screwed up the db name and everything, but now I’m getting an access denied error.

@zanderl said:

@Admin said:
I checked the script, you’re not using the correct MySQL hostname. It should be something like sql123.rf.gd, not your username.

I apologize, I screwed up the db name and everything, but now I’m getting an access denied error.

Check the username field.