This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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)