Question Validation of MySQL Database Server

capedech

Well-known member
Joined
Oct 29, 2008
Messages
62
Programming Experience
Beginner
Hi,
I'm making an application with VB.NET and MySQL Database.
I'm using WAMP (Apache) as the server.

What I want to ask is:
In coding, how to check if the server is on or off.
I want to make a validation in Splash Screen, if the server is off then it will open a messagebox that says "The Database Server is currently off !!" or something like that.

Please help my problem.


Thanks in Advance.

Regards,
 
Connect in a try-catch block. If the server does not respond, you will get an exception that can be checked for the reason.

Using try-catch is a nice thing anyway ...
 
Back
Top