标签:sql语句 ges mys with sql 远程访问 ant 常用sql 用户
撤销权限
revoke all on *.* from ‘root‘@‘192.168.0.197‘ ;
给指定用户赋予指定数据库select的权限
grant select ON xx_db TO ‘user_xx‘ @‘%‘ IDENTIFIED BY "password";
给指定用户赋予指定数据库所有的权限
grant all privileges on xx_db.* to ‘user_xxb‘ @‘%‘ identified by "password";
给所有用户赋予指定数据库所有权限
grant select on *.* to ‘xx_db‘ @‘%‘ identified by "password";
给所有用户赋予所有权限(远程访问,不限制在本机访问)
grant all privileges on *.* to ‘user_xx‘ @‘%‘ identified by "password";
赋予grant的权限
grant all privileges on *.* to ‘user_xx‘ @‘%‘ WITH GRANT OPTION
给指定用户赋予所有数据库的权限
grant select on xx_db to ‘user_xx‘ @‘%‘ identified by "password";
标签:sql语句 ges mys with sql 远程访问 ant 常用sql 用户
原文地址:https://www.cnblogs.com/xiaoer/p/9309422.html