04.07.2013, 23:57
Make sure that
1. Your server is allowing connections to the MySQL host.
2. Your MySQL host is allowing connections to the server.
That error happens when it doesn't connect in the first place. Most free MySQL hosting providers have issues with external SQL connections. Anyways, I would make sure you have the correct query syntax's, sometimes I had a problem in my syntax's that caused this error to be received. Also, Are the privileges of the MySQL databases set properly?
1. Your server is allowing connections to the MySQL host.
2. Your MySQL host is allowing connections to the server.
That error happens when it doesn't connect in the first place. Most free MySQL hosting providers have issues with external SQL connections. Anyways, I would make sure you have the correct query syntax's, sometimes I had a problem in my syntax's that caused this error to be received. Also, Are the privileges of the MySQL databases set properly?