grant all privileges on *.* to 'root'@'xxx.xxx.xxx.xxx' identified by 'password' with grant option;
flush privileges;
grant all privileges on *.* to 'root'@'xxx.xxx.xxx.xxx' identified by 'password' with grant option;
flush privileges;
转载于:https://my.oschina.net/hycx227/blog/480106