Reputation: 3566
I am trying to connect java to MySQL.when i try to connect,it shows the error message:
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:
and this opens:
what to set in this??
UPDATE:
Its strange that Derby is getting connected:
and i din't provide any username and password.
Upvotes: 1
Views: 2677
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
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:
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
Reputation: 22128
The error is saying 'Access denied for user', so it means that the username/password you provided are not correct.
Upvotes: 1