MYSQL5.7:Access denied for user 'root'@'localhost' (using password:YES)解决方法
来源:互联网 发布:防arp攻击软件 编辑:程序博客网 时间:2024/06/05 19:19
1.打开MySQL目录下的my.ini文件,在文件的最后添加一行“skip-grant-tables”,保存并关闭文件;
2.重启MySQL服务;
3.通过cmd行进入MySQL的bin目录,输入“mysql -u root -p”(不输入密码),回车即可进入数据库;
4.执行“use mysql;”,使用mysql数据库;
5.执行update mysql.user set authentication_string=password(‘123456’) where user=’root’ and Host = ‘localhost’;(修改root的密码);
6.打开MySQL目录下的my.ini文件,删除最后一行的“skip-grant-tables”,保存并关闭文件;
7.mysql> flush privileges;
8.mysql> quit;
9.在命令行中输入“mysql -u root -p 123456”,即可成功连接数据库。
0 0
- MYSQL5.7:Access denied for user 'root'@'localhost' (using password:YES)解决方法
- Access denied for user 'root'@'localhost' (using password: YES)解决方法
- Access denied for user 'root'@'localhost' (using password:YES) 解决方法
- Access denied for user 'root'@'localhost' (using password:YES)解决方法
- Access denied for user 'root'@'localhost' (using password:YES)解决方法
- java连接mysql5.7报错Access denied for user 'root'@'localhost' (using password: YES)解决
- java连接mysql5.7报错Access denied for user 'root'@'localhost' (using password: YES)解决
- ubuntu下mysql5.7的'Access denied for user 'root'@'localhost' (using password: YES)'错误
- Mysql-(Mysql5.7及以上版本)Access denied for user 'root'@'localhost' (using password:YES) 解决方案
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- Access denied for user 'root'@'localhost' (using password: YES) 问题解决
- 解决'Access denied for user 'root'@'localhost' (using password: YES)'
- access denied for user 'root'@'localhost' using password yes
- access denied for user 'root'@'localhost' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- Access denied for user 'root'@'localhost' (using password: YES)解决办法
- Access denied for user: 'root@localhost' (Using password: YES)
- Access denied for user 'root'@'localhost' (using password: YES)
- SDKD2017——Scarily interesting! (贪心)
- Anaconda4.3.1.0 + opencv3.2 + python3.6 + win8安装配置
- 初学web前端-20170425
- MySql镜像安装
- Maven工程问题
- MYSQL5.7:Access denied for user 'root'@'localhost' (using password:YES)解决方法
- hibernate利用mysql的自增张id属性实现自增长id和手动赋值id并存
- java工具类——String过滤敏感字
- [zz终于搞懂]后缀数组-建数组代码分析
- 关于PHP内部编码与mysql字符差异问题的研究
- RecyclerView实现时光轴效果
- 【转载】C++常见问题: 字符串分割函数 split
- 梯度下降法
- ArduPilot源码学习--(一)--MAC下编译ArduPilot源码