时间:2021-07-01 10:21:17 帮助过:15人阅读
2.想要取消普通账号的只读模式,执行下面sql
SET GLOBAL READ_ONLY=0;
3.创建普通账号,并授权:
create user mice identified by ‘mice‘; grant all on mice.* to ‘mice‘@‘%‘; flush privileges;
好了 到这里mice账号就拥有了读权限
测试:
mysql从库设置全局只读,并创建普通账号
标签:mysq grant png pre ant 从库 lob set mysql