mysql使用临时密码登录不进去mysql: [Warning] Using a password on the command line interface can be insecure
1.在root用户下,停止mysql
service mysqld stop
2.vi /etc/my.cnf
在[mysqld]的段中加上一句skip-grant-tables
[mysqld]
skip-grant-tables
shift+z+z;保存退出
3.重新启动mysql
systemctl start mysqld
3.登录修改mysql 的密码
[root@python2 hadoop]# mysql -uroot -p
Enter password:
一直敲...
转载
2021-06-25 22:02:54 ·
1849 阅读 ·
0 评论