MySQL开启root远程访问权限

允许任何IP使用 root 账户,口令8个1远程访问

方法1

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '11111111' WITH GRANT OPTION;

  

方法2 

mysql> use mysql;
mysql> update user set host = '%' where user = 'root';

猜你喜欢

转载自lj6684.iteye.com/blog/1462519