Solved

How to check if MySQL server already running

Posted on 2006-11-20
2
185 Views
Last Modified: 2010-04-23
Hi,
Starting my application I need to use mysqld to launch the MySQL server.

So I need to know whether the server is already running or not in order to prevent error:

«Do you already have another mysqld server running on port: 3306 ?»

Thanks

scml
0
Comment
Question by:scml
2 Comments
 
LVL 13

Expert Comment

by:newyuppie
ID: 17980229
you could use Try..Catch blocks

Try
   MyConnection.Open
Catch ex as MySQLException
   'server was open, procced with other code
End Try
0
 
LVL 13

Accepted Solution

by:
iHadi earned 125 total points
ID: 17981644
Hi scml

The following link leads to a question very simular to yours:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21933668.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question