- 進(jìn)入mysql
mysql -uroot -p
- 授權(quán)root給任何IP脸候,對任何數(shù)據(jù)庫.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密碼' WITH GRANT OPTION;
- 刷新授權(quán)(立刻生效)
flush privileges;
本文使用OpenWrite進(jìn)行編寫
mysql -uroot -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密碼' WITH GRANT OPTION;
flush privileges;
本文使用OpenWrite進(jìn)行編寫