SHOW VARIABLES LIKE '%read_only%';

设置全局变量super_read_only为on:SET GLOBAL super_read_only=1 ;

设置“可以限定普通用户进行数据修改的操作,但不会限定具有super权限的用户的数据修改”操作read_only为on:SET GLOBAL read_only=1;

设置后如下效果表示成功:

mysql数据库设置所有用户只读(从服务器使用)

转载:https://blog.csdn.net/weixin_34007020/article/details/85975466

相关文章:

  • 2021-11-27
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-08-01
  • 2021-07-24
  • 2021-09-13
相关资源
相似解决方案