File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost' (10061) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "ERROR 2003 (HY000) Can Watch "ERROR 2003 (HY000) Can New topic
Author

ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost' (10061)

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Need your HELP, please.

My SQL database could not be opened with communication failure. This database and connector worked once last night and now it couldn't be opened again . I tried pinging it on my DOS command line, same error. I pinged "Localhost", same problem I did it standalonne on the Database view, same problem

I am running MySQL 5.1 and Tomcat 6.0.18. The communication link failure error is below no matter how you try to connect to it.

Many Thanks in advance.

Any ideas will be greatly appreciated.

ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost' (10061)



[Thumbnail for 2ndmysql.png]

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Problem solved!

Try turning on your MySQL service manually. I started it (from the Services dialog) by hand it (it was on Automatic). And, it connected!

Good Luck, my dear friends
Tuan Hassim
Greenhorn

Joined: Jan 12, 2013
Posts: 1

Mimi Tam wrote:Problem solved!

Try turning on your MySQL service manually. I started it (from the Services dialog) by hand it (it was on Automatic). And, it connected!

Good Luck, my dear friends


Thank you very much Mimi Tam, I had the same problem and googled it, but couldn't understand those solutions, but got it solved by your simple answer. Cheerz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost' (10061)
 
Similar Threads
Help - - - ClassNotFoundException: com.mysql.jdbc.Driver
Problem while configuring mysql
No 1st page but just the "Directory Listing for"...index.html
MySQL localhost
starting MySQL server