Unable to connect to any of the specified MySQL hosts.

Jun 2, 2012 at 8:25 AM


I try to connect to my site at 1mohammadi.ir and back up MySQL database of my site but this error happend:

"Unable to connect to any of the specified MySQL hosts."

How can i fix this error?

view error image

Jun 2, 2012 at 10:05 AM
Edited Jun 2, 2012 at 10:08 AM


by default, MySql at web hosting will only allow connection from "localhost".

If you wish to connect to MySql using ur computer (remote access), or other IP, you have to allow the MySql at your website to be connected by your IP.

If your website is using CPanel, you may refer this guide:

1. http://docs.cpanel.net/twiki/bin/view/11_30/CpanelDocs/RemoteMySQL

2. http://support.hostgator.com/articles/cpanel/how-to-whitelist-your-ip-in-cpanel-for-remote-mysql-access

Jun 2, 2012 at 10:28 AM

Thanks so much ;-}

Jun 2, 2012 at 4:02 PM

You are welcome.