简体   繁体   中英

JDBC driver connection failed

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM