sommardahl
Guppy
I began experiencing a troubling problem in my ASP scripts beginning about two months ago. I had not changed anything in my scripts. The problem seems to have popped up on its own and is not limited to one server, but all windows and mysql servers on which my accounts are hosted.
The problem: Every now and then (no detectible pattern), an ASP script will throw a [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'mysqlX.domain.com' (10060). It also occurs when the IP is used in place of mysqlX.domain.com. The error always follow the opening of a new connection to the database server (adoConn.Open strConnectionVar). Whenever I have experienced this error personally, I can click "refresh" and the page loads without issue.
I have googled this over and over. There are plenty of results on a search for the error message that I'm getting, but they don't seem to apply in this case (or I don't understand what I'm reading). I've ping ponged a little with jodohost support, but they say there's nothing wrong with the mysql server.
I've got a few theories:
1) The version of ODBC on the server cannot handle as many connections as are being asked of it, so it's throwing errors when someone tries to connect to the mysql database via script. This theory might hold water if others are experiencing the same errors.
2) There was some kind of update to either ODBC, Windows, or MySQL around the same time as I began getting these errors which has introduced the possibility of these errors.
Things it cannot be:
1) I don't believe it can be a problem with my connection string. I have used the same format for connection string for as long as I have been with Jodohost without issue until lately. Here is my connection string for your scrutiny:
StrConnectionVAR = "Driver={MySQL ODBC 3.51 Driver};server=mysqlX.domain.com;uid=username;pwd=password;database=dbname;Option=16387;"
2)I don't believe it is an overabundance open connections caused by my scripts. At first, I thought this might be the case so i scrubbed my scripts for loose ends. I made a pretty drastic change to the script by opening one database connection per page load. I also made sure that all connections and recordsets are closed by the end of the script.
So sorry for the long post. If you've made it this far, I applaud you. Hopefully, someone out there had experienced something similar. If that's you, let me know what you did to fix it or if you have any advice for me.
Best Regards!
The problem: Every now and then (no detectible pattern), an ASP script will throw a [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'mysqlX.domain.com' (10060). It also occurs when the IP is used in place of mysqlX.domain.com. The error always follow the opening of a new connection to the database server (adoConn.Open strConnectionVar). Whenever I have experienced this error personally, I can click "refresh" and the page loads without issue.
I have googled this over and over. There are plenty of results on a search for the error message that I'm getting, but they don't seem to apply in this case (or I don't understand what I'm reading). I've ping ponged a little with jodohost support, but they say there's nothing wrong with the mysql server.
I've got a few theories:
1) The version of ODBC on the server cannot handle as many connections as are being asked of it, so it's throwing errors when someone tries to connect to the mysql database via script. This theory might hold water if others are experiencing the same errors.
2) There was some kind of update to either ODBC, Windows, or MySQL around the same time as I began getting these errors which has introduced the possibility of these errors.
Things it cannot be:
1) I don't believe it can be a problem with my connection string. I have used the same format for connection string for as long as I have been with Jodohost without issue until lately. Here is my connection string for your scrutiny:
StrConnectionVAR = "Driver={MySQL ODBC 3.51 Driver};server=mysqlX.domain.com;uid=username;pwd=password;database=dbname;Option=16387;"
2)I don't believe it is an overabundance open connections caused by my scripts. At first, I thought this might be the case so i scrubbed my scripts for loose ends. I made a pretty drastic change to the script by opening one database connection per page load. I also made sure that all connections and recordsets are closed by the end of the script.
So sorry for the long post. If you've made it this far, I applaud you. Hopefully, someone out there had experienced something similar. If that's you, let me know what you did to fix it or if you have any advice for me.
Best Regards!