If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > cannot establish a connection

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-10, 02:17
pbangalore pbangalore is offline
Registered User
 
Join Date: Nov 2009
Posts: 14
cannot establish a connection

I cannot establish a connection using com.mysql.jdbc.driver

I'm using MySql server 5.0 and mysql-connector-java-5.1.7 driver for the connection. But whenever I'm trying to establish connection to the server using the above driver through NetBeans IDE 5.5.1 I'm getting the following message

"Unable to add connection,cannot establish a connection to jdbc:mysql://localhost:3306/mydatabase using com.mysql.jdbc.Driver(Access denied for user '@localhost'(using password:NO))"

Plz. provide me the solution...
Reply With Quote
  #2 (permalink)  
Old 02-06-10, 03:49
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,768
so can you connect to MySQL using another application, such as MSQL Admin or MySQL Query Browser (both part of the MySQL GUI Tools available from the MySQL site)
of can you connect to MySQL from another application say PHPMyAdmin or one of the other tools such as HeidiSQL?

I suspect you have a permissions problems, either the userid you are connecting with has no permissions or the permissions are wrongly set. although you can GRANT the permissions using the MyQL command line, persoanlly I find it a lot easier to use MySQLAdmin to do that. its also clearer to see what permissions have been GRANTED and to whom.

if you do use the command line to set permissions then make certain you FLUSH PRIVILEGES after making any changes

as usual details of permissions can be found in da manuel or on google
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On