1.以root登入
2.停止mysqld
/etc/rc.d/init.d/mysqld stop
3.使用--skip-grant-tables參數啟動MySQL Server
mysqld_safe --skip-grant-tables &
4.為root@localhost設置新密碼
綠茶半糖
Website:http://www.odysseyweb.idv.tw/
Discord:https://discord.gg/ht4mwMG
YouTube:https://www.youtube.com/channel/UCQwGJo1JXmIR-SMY8tXL5Uw |