Hi,
I have a .NET service running on Amazon Ec2 on a windows 2008 server which uses MySql as the database using .NET connectors. Although the database transaction are not heavey weight, I have important information for the service which goes in and out of this database for every user request. Since I wanted to get away from backup and stuff, I attached a elastic volume to my cloud instance and installed MySql DB on that volume.
The service was running for almost more than 2 months without any issues. and suddenly one day when I received some failure notification I had to dig into the logs to find out the root cause. As it apeart to me was this error:
"DBHelper - Exception while creating new connection in initConnection : Unable to connect to any of the specified MySQL hosts."
This is the same piece of code which was running for such a long time, which started throwing this error out of no where. As I wanted to get this up and running as soon as possible I did a MySql service restart. It worked for some time but again after a day or so it started giving me this error. At this point I restarted my machine and now everything looks fine.
I want to find out exact root cause of this problem.
Can this occure because of the connection pool has got exhausted? I think then the error should have been a bit different isn't it.
Can anybody give me some idea as to what might have gone wrong.
-Saurabh
I have a .NET service running on Amazon Ec2 on a windows 2008 server which uses MySql as the database using .NET connectors. Although the database transaction are not heavey weight, I have important information for the service which goes in and out of this database for every user request. Since I wanted to get away from backup and stuff, I attached a elastic volume to my cloud instance and installed MySql DB on that volume.
The service was running for almost more than 2 months without any issues. and suddenly one day when I received some failure notification I had to dig into the logs to find out the root cause. As it apeart to me was this error:
"DBHelper - Exception while creating new connection in initConnection : Unable to connect to any of the specified MySQL hosts."
This is the same piece of code which was running for such a long time, which started throwing this error out of no where. As I wanted to get this up and running as soon as possible I did a MySql service restart. It worked for some time but again after a day or so it started giving me this error. At this point I restarted my machine and now everything looks fine.
I want to find out exact root cause of this problem.
Can this occure because of the connection pool has got exhausted? I think then the error should have been a bit different isn't it.
Can anybody give me some idea as to what might have gone wrong.
-Saurabh