Solved

How to check if MySQL server already running

Posted on 2006-11-20
2
176 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now