- 进入 mysql
mysql -uroot -p
- 授权 root 给任何 IP,对任何数据库.
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
- 刷新授权 (立刻生效)
flush privileges;
本文使用 OpenWrite 进行编写
mysql -uroot -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
flush privileges;
本文使用 OpenWrite 进行编写