message:
The server encountered an internal error that prevented it from fulfilling this request.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
what ‘s this mean?
//这个方法链接数据库 url写错了,user熟悉 password 属性值都不需要 转义双引号。
public static Connection getConnection()
{
try{
new Driver();
return DriverManager.getConnection("jdbc:mysql:///test?user=dxm&password=123###");
}catch(SQLException e)
{
e.printStackTrace();
}
return null;
}