在丛库配置文件里增加read-only
该选项限制普通用户只有select权限。
--read_only Make all non-temporary tables read-only, with the
exception for replication (slave) threads and users with
the SUPER privilege
权限SUPER
的上下文是属于“服务器管理”的,当然有可随意更新插入删除!有all/super
权限的都不在这个范围内,也不会影响复制线程操作。
这篇文章还没有人留言,快来抢沙发吧。