JSP连接MySQL时错误:Access denied for user 'root'@'localhost' (using password: YES)'解决方案
2008-12-29 13:31
881 查看
错误是什么,关键是看:Access denied for user 'root'@'localhost' (using password: YES)'
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放开权限:
首先计入到mysql的客户端命令行。
然后
grant all privileges on *.* to 'root'@'localhost' identified by 'root(你的密码)' with grant option;
flush privileges;
执行完这两条命令之后就可以了。
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放开权限:
首先计入到mysql的客户端命令行。
然后
grant all privileges on *.* to 'root'@'localhost' identified by 'root(你的密码)' with grant option;
flush privileges;
执行完这两条命令之后就可以了。
相关文章推荐
- mysql错误 Access denied for user 'root'@'localhost' (using password:YES) 解决方案
- Toad for MySQL ,Navicat for MySQ连接错误 Access denied for user: 'root@localhost' (Using password: YES)
- jdbc与mysql的连接错误解决——“Connect failed: Access denied for user 'root'@'localhost' (using password: YES)”
- Ubuntu上使用jsp去连接mysql的时候踢提示Access denied for user 'root'@'localhost' (using password: YES)的解决办法!!!
- MySql错误1045 Access denied for user 'root'@'localhost' (using password:YES) windows下的解决方案(忘记密码)
- JSP连接MySQL时出现--错误:Access denied for user 'root'@'localhost' (using password: YES)'解决方案
- mysql 错误解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- 解决mysql的错误-access denied for user 'root'@'localhost'(using password:YES) for MACOS
- MYSQL问题解决方案:Access denied for user 'root'@'localhost' (using password:YES)
- mysql两个错误:1067服务无法启动;1045 access denied for user 'root'@'localhost' using password yes
- Mysql连接错误:Access denied for user 'root'@'localhost' (using password:YES)解决方案以及WINDOWS下修改Mysql密码
- Ubuntu mysql 的Access denied for user 'root'@'localhost' (using password: YES错误解决方法
- mysql 错误:access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
- MySQl登录错误:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
- MySQL 出现 Access denied for user 'root'@'localhost' (using password: YES) 错误
- Access denied for user 'root'@'localhost' (using password:YES) 解决方案
- mysql启动问题access denied for user 'root'@'localhost'(using password:YES)
- MySql Access denied for user 'root'@'localhost' (using password: YES)
- mysql登录报错“Access denied for user 'root'@'localhost' (using password: YES”的处理方法