The server encountered an internal error that prevented it from fulfilling this request. exception

来源:互联网 发布:wingide for mac 破解 编辑:程序博客网 时间:2024/06/07 09:30


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;
}


0 0
原创粉丝点击