myeclipse报错
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
Mysql dos环境能登录 第三方能登录连接代码
        
package jdbc;
import java.sql.*;
public class JDBCBean { private String driverStr = "com.mysql.jdbc.Driver";
private String connStr = "jdbc:mysql://localhost:3306/ch09?user=root&6261060=root&useUnicode=true&characterEncoding=gbk";
private Connection connection = null;
private Statement stmt=null;
private ResultSet rs = null; public JDBCBean() {
try {
Class.forName(driverStr);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}

private Connection getConnection(){
try {
connection=DriverManager.getConnection(connStr);
} catch (SQLException e) {
e.printStackTrace();
}
return connection;
} private Statement createStatement(){
try {
stmt=getConnection().createStatement();
} catch (Exception e) {
e.printStackTrace();
}
return stmt;
}
public ResultSet executeQuery(String sql) {
try {
rs = createStatement().executeQuery(sql);
} catch (Exception e) {
e.printStackTrace();
}
return rs;
} public int executeUpdate(String sql) {
int result = 0;
try {
result = createStatement().executeUpdate(sql);
} catch (Exception e) {
e.printStackTrace();
}
return result;
}

public void close(){
try {
if (rs != null)
rs.close();
if (stmt != null)
stmt.close();
if (connection != null)
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}}