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.
错误是说“拒绝访问用户”,这意味着您提供的用户名/密码不正确。
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...
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.