1.修改mysql啟動設定
# vim /etc/my.cnf
[mysqld]下
添加:skip-grant-tables
2重啟mysql程式
systemctl restart mysqld
3無密碼登錄
mysql -uroot
4修改自己的密碼
mysql>UPDATE mysql.user SET
authentication_string=password('QianFeng@123456789') where user='root' and
host='localhost';
5重繪mysql
mysql> FLUSH PRIVILEGES;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/15720.html
標籤:服務器
下一篇:怎么寫啊java的,急等
