添加新用户test,设置任意ip登录,密码:qwe123
> CREATE USER 'test'@'%' IDENTIFIED BY 'qwe123';
授权test账户select,insert操作权限至数据库order全部数据表
> GRANT select,insert ON order.* TO 'test'@'%';
执行后刷新权限才能生效
> FLUSH PRIVILEGES;
权限变更-收回权限-收回insert权限
revoke insert on order.* from 'test'@'%';
标签:insert,添加,Mysql,test,授权,权限,order,select From: https://www.cnblogs.com/haoxuanchen2014/p/17592170.html