vendredi 8 mai 2015

Debugging MySQL connection issues from C# application

I seem to be missing something obvious, and it's been bothering me for last few days.

I use a C# application on Windows Server 2012 to connect to MySQL database to generate a report end of the day. I use Task Scheduler to run this application.

While it seems to be running smoothly when I run manually - When the I run the application at a set time (11pm) - it throws MySQL connection error, i.e. Unable to connect to localhost (I email myself the error).

This has happened a few times, and I am unable to recreate the issue.

How can I troubleshoot/debug this -? I've looked into Windows Events and can't find anything. Where would MySQL connection issues be logged?

Thanks in Advance.

Aucun commentaire:

Enregistrer un commentaire