File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes starting MySQL server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "starting MySQL server" Watch "starting MySQL server" New topic
Author

starting MySQL server

Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
I was able to start the server yesterday but not today. I'm running this in the cmd prompt. Nothing happens.
cd C:\Users\Tina\Desktop\java\MySQL\mysql-5.5.21-winx64\bin
mysqld –console

I get "ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)" when I run this in the cmd prompt.
mysql -u root

How do I start the server?
Zeeshan Sheikh
Ranch Hand

Joined: Nov 20, 2011
Posts: 143

I think personal firewall is running on your machine. Please make sure you have opened the TCP port 3306 for connections.
Tina Mills
Greenhorn

Joined: Feb 23, 2012
Posts: 15
I needed another hyphen. This worked. Thank you.
mysqld --console
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
Well done sorting it out . I think I ought to move this discussion to the databases forum.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: starting MySQL server
 
Similar Threads
Is there a MySQL server running on the machine/port you are trying to connect to?
starting java program
MySql, JBoss error: NPE @ org.jboss.mx.loading.loadmgr3 .beginloadtask
Starting webLogic server
Runtime.exec()