Mysql将用户更改为可编辑模式非只读模式

时间:2014-11-03 02:19:09

标签: mysql

我使用SSH连接,远程Mysql数据库 不幸的是,我无法编辑数据,因为模式是READ ONLY,
我已尝试授予用户root的所有权限,但仍处于READ ONLY模式,
如何将READ ONLY模式更改为可编辑数据模式? enter image description here

更新

并尝试了set GLOBAL read_only = false;

2 个答案:

答案 0 :(得分:0)

你也可以通过几种方法打开和关闭
方法1 只读 SET GLOBAL read_only = ON;
只读了 SET GLOBAL read_only = OFF;

方法2
只读 update replicationstatus set writable = 0;
只读了 update replicationstatus set writable = 1;

答案 1 :(得分:-1)

您还可以使用几种不同的方法设置只读打开和关闭:

方法1

#read only on
SET GLOBAL read_only = ON;
#read only off
SET GLOBAL read_only = OFF;

方法2

#read only on
update replicationstatus set writable=0;
#read only off
update replicationstatus set writable=1;
相关问题