Skip navigation links

MySQL Forums :: Connector/JDBC and Java :: Cannot establish a connection to jdbc:mysql://localhost:3306 for user root


Advanced Search

Cannot establish a connection to jdbc:mysql://localhost:3306 for user root
Posted by: twinkle mary ()
Date: July 18, 2012 06:18AM

I have been using mysql and netbeans for doing project. and i connected mysql to netbeans. now i copied forms from my application to different project and i was unable to connect to database. so i tried many ways to connect it. but it was not working. then i deleted the mysql server instance and tried to add a new connection now i am getting an error message like
Unable to connect to the MySQL server:

org.netbeans.api.db.explorer.DatabaseException: Cannot establish a connection to jdbc:mysql://localhost:3306 for user root.

The server may not be running or your MySQL connection properties may not be set correctly. Do you want to edit your MySQL connection properties?

i'm new to mysql and if anybody can help me out it will be good

Options: ReplyQuote


Subject Written By Posted
Cannot establish a connection to jdbc:mysql://localhost:3306 for user root twinkle mary 07/18/2012 06:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.