mysql 5.7.12 修改密码
生活随笔
收集整理的這篇文章主要介紹了
mysql 5.7.12 修改密码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysql 5.7.12 修改密碼
vim /etc/my.cnf
skip-grant-tables
/etc/init.d/mysqld restart
mysql 直接登陸
use mysql
update mysql.user set authentication_string=password('123456') where user='root';
修改完成以后注意把?skip-grant-tables 這行去掉不然一直不需要密碼
轉載于:https://blog.51cto.com/liqilong2010/1785348
總結
以上是生活随笔為你收集整理的mysql 5.7.12 修改密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Struts拦截器使用
- 下一篇: cocos2dx游戏--欢欢英雄传说--