# mysql -u root -proot mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION; 允许地址202.11.10.253上用root用户,密码dboomysql来连接mysql的所有数据库,付给select,insert,update,delete权限。
# mysql -u root -proot grant select,insert,update,delete on *.* to root@"202.11.10.253" Identified by "dboomysql"; 允许地址202.11.10.253上用root用户,密码dboomysql来连接mysql的所有数据库,付给所有权限。
# mysql -u root -proot
grant all on *.* to root@"202.11.10.253" Identified by "dboomysql"