1.授權root用戶,密碼123456,允許遠程連接;
root =》 用戶名 % =》允許所有主機ip,可以單獨指定 ip 123456=》密碼
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
2.將配置寫入mysql 授權表中
flush privileges;
1.授權root用戶,密碼123456,允許遠程連接;
root =》 用戶名 % =》允許所有主機ip,可以單獨指定 ip 123456=》密碼
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
2.將配置寫入mysql 授權表中
flush privileges;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。