【MySQL】---1045-Access denied for user 'root'@'localhost'(using password :YES)
2017-12-10 20:07
274 查看
前言:
最近的在项目中再一次用到MySQL,之前是在本机上装好的,这次再次登录的时候,用户名和密码是正确的,但是登录依然出现了错误,用localhost和IP登录都报错了,经过一番查找,看了很多巨人的解决方法,从中学到了不少。错误:
1)用localhost登录:
错误:2)用ip登录:
错误:解决方案:
1、找到安装路径( 我的是E:\mysql\mysql-5.6.24-winx64)下的my.ini2、 打开 my.ini 找到 [mysqld] 然后在下面加上—— skip_grant_tables (意思好像是 启动MySQL服务的时候跳过权限表认证 )保存,重新启动mysql服务。
3、再次启动时即可成功。
参考
总结:
自己对原理的地方理解的还是不完善,有错误的地方还望指正,但通过这次的这个错误对用命令操作mysql有熟悉了很多,每一次错误都是一次很好的成长的机会。通过回顾之前自己对mysql的总结,确实也有很大的帮助。知识的掌握不必刻意的去记,它可以算的上是一个不断反复得过程。相关文章推荐
- Windows7系统 Navicat连接MySQL提示错误1045 Access denied for user 'root'@'localhost' (using password:YES)
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 和ERROR 1820解决办法wan
- Mysql ——1045-Access denied for user 'root'@'localhost'(using password:YES)
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- MySQL提示:1045 access denied for user 'root'@'localhost' using password yes
- mysql 重新修改密码 以及ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)问题解决
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- mysql忘记密码了1045,解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- CentOS 7.4下解决登录MySQL时,ERROR 1045 (28000): Access denied for user root@localhost (using password: YES
- mysql集群:1045-Access denied for user 'root'@'localhost'(using password:YES)
- 【数据库】mysql(1045 access denied for user 'root'@'localhost' using password yes)的解决方案
- mysql连接问题1045 Access denied for user 'root'@'localhost' (using password:YES)
- mysql 错误解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- linux安装MySQL出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- [MySQL]1045 - Access denied for user 'root'@'localhost'(using password:YES)
- mysql出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 错误
- 关于MySql登录出现错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)
- MySql错误1045 Access denied for user 'root'@'localhost' (using password:YES) windows下的解决方案(忘记密码)