mysql5.6修改密碼並授權所有遠程用戶可登陸


1.my.ini文件,刪除最后一行的“skip-grant-tables

2.執行“use mysql;”,使用mysql數據庫;

3.執行:update mysql.user set password=password("123456") where user="root"

4.grant all privileges on . to root@'%' identified by '123456' with grant option ;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM