错误代码 1290 (HY000) 是一个由MySQL数据库返回的错误,表明当前数据库实例被设置为超级只读模式(--super-read-only),这意味着它不接受任何写操作,包括插入、更新和删除数据。 查明MySQL服务器为何以--super-read-only选项运行: 通常,MySQL服务器被设置为超级只读模式是为了保护数据库数据在维护或迁移期间不被修改...
mysql> insert into test(id,name) values(23,'fddf'); ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement 结论:当用户权限中没有SUPER权限(ALL权限是包括SUPER的)时,从库的read-only生效!
super_read_only 参数同样默认关闭,开启后不仅会阻止普通用户,也会阻止具有 super 权限的用户对数据库进行变更操作。 read_only 和 super_read_only 是有关联的,二者之间的关系如下: 设置super_read_only=on ,也就隐式地设置了 read_only=on。 设置read_only=off ,也就隐式地设置了 super_read_only=off。
super_read_only 参数同样默认关闭,开启后不仅会阻止普通用户,也会阻止具有 super 权限的用户对数据库进行变更操作。 read_only 和 super_read_only 是有关联的,二者之间的关系如下: 设置super_read_only=on ,也就隐式地设置了 read_only=on。 设置read_only=off ,也就隐式地设置了 super_read_only=off。
super_read_only 参数同样默认关闭,开启后不仅会阻止普通用户,也会阻止具有 super 权限的用户对数据库进行变更操作。 read_only 和 super_read_only 是有关联的,二者之间的关系如下: 设置super_read_only=on ,也就隐式地设置了 read_only=on。 设置read_only=off ,也就隐式地设置了 super_read_only=off。
--super-read-onlyPurposeTo understand and troubleshoot a disk-full scenario, and know and understand the OFFLINE_MODE and why --super-read-only may be set.Example Error: SQLSTATE[HY000]: General error: 1290 The MySQL server is running with the --super-read-only option so it cannot execut...
ERROR1290(HY000): The MySQL serverisrunningwiththe--super-read-only option so it cannot execute this statement# 关闭 read_only 参数 mysql>setglobalread_only=0; Query OK,0rowsaffected (0.00sec) 2.flush tables with read lock 设置 除了read_only 参数外,执行 flush tables with read lock 也可将...
MySQL Error 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement @ file bytes range [1400005472, 1500005697). MySQL Error 1290 (HY000): The MySQL server is running with the --offline-mode option so it cannot execute this statement...
6 mysql> insert into ct(id,name) select 2,'b'; ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement 只读模式下,不提供写服务。 7 [ERROR] Plugin group_replication reported: 'Transaction cannot be executed while Group Repli...
ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement 此时新主节点处于超级只读模式,不允许用户执行操作。 4.总结 通过异步连接故障切换机制,当复制连接出现问题时,不需要人工介入手动去重新建立复制连接,副本会自动进行异步故障转移与新的节点...