Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I am curious as how to I check wether or not my connection to my MySql database works.

 

When I can connect to the database via my connection script etc, all works great. But if the server that the database is down, my program then gets a runtime error and crashes. How can I check this so that if the server is down, I can exit the routine it is in so that it does not crash.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...