日期:2014-05-17  浏览次数:20711 次

hibernate 连接mysql出错
Error while performing database login with mysql driver:Access denied for  user 'sa'@"localhost (using password :Yes)

我在装mysql的时候把用户名和密码都设成了sa,数据库可以登录,但是在myeclipse里面测试连接的时候报以上的错,
请大侠指教

------解决方案--------------------
连接语句写错了!要写密码,他告诉你格式没对.还有就是试试root咯
------解决方案--------------------
启动服务没有

加入驱动没,

还有有时要关防火