joey rohan
joey rohan

Reputation: 3566

JDBC driver connection failed

I am trying to connect java to MySQL.when i try to connect,it shows the error message:enter image description here

But i don't know where the error is.I am using windows 7.Netbeans 6.5.1.please help. and when i click on start: enter image description here

and this opens: enter image description here

what to set in this??

UPDATE:

Its strange that Derby is getting connected:

enter image description here enter image description here

and i din't provide any username and password.

Upvotes: 1

Views: 2677

Answers (3)

Fathah Rehman P
Fathah Rehman P

Reputation: 8741

download heidisql from follwing link http://heidisql.googlecode.com/files/HeidiSQL_7.0_Setup.exe and try to connect to your mysql using heidisql. If its success then use the same properties(username,password etc) in netbeans too...

Upvotes: 1

Paulius Matulionis
Paulius Matulionis

Reputation: 23415

Probably you did something wrong with the configuration. Recreate the connection and test it before clicking Finish.

I've just tried to do this with my local MySql and Netbeans:

enter image description here

The connection was successful. If you can't succeed the connection at this point, then check if the database exists, and check your username and password you are providing for the connection.

Upvotes: 1

jbx
jbx

Reputation: 22128

The error is saying 'Access denied for user', so it means that the username/password you provided are not correct.

Upvotes: 1

Related Questions