The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
http://www.jb51.net/article/119654.htm
The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
意思貌似MYSQL还运行在 --skip-grant-tables模式,如何让他回到原来的模式
第一种方法:原来在mysql.ini文件中配置了skip-grant-tables,前面加个#注释掉就可以了
修改mysql的配置文件,把skip-grant-tables
去掉后,重启mysql
第二种:
The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
解决办法:
mysql> set global read_only=0;
(关掉新主库的只读属性)
flush privileges;
set global read_only=1;(读写属性)
flush privileges;
Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
mysql> SET SESSION binlog_format = 'ROW';
mysql> SET GLOBAL binlog_format = 'ROW';
解释:
set global read_only=0; 关闭只读,可以读写
set global read_only=1; 开始只读模式
mysql> set global read_only=0;
Query OK, 0 rows affected (0.00 sec) mysql> show variables like '%read_only%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| innodb_read_only | OFF |
| read_only | OFF |
| tx_read_only | OFF |
+------------------+-------+
3 rows in set (0.00 sec) mysql> set global read_only=1;
Query OK, 0 rows affected (0.00 sec) mysql> show variables like '%read_only%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| innodb_read_only | OFF |
| read_only | ON |
| tx_read_only | OFF |
+------------------+-------+
3 rows in set (0.00 sec)
set global read_only=0; 关闭只读,可以读写 set global read_only=1; 开始只读模式
The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement相关推荐
- 解决关于 ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it....报错
mysql> create user 'zhilong'@'%' identified by '123456'; ERROR 1290 (HY000): The MySQL server is ...
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this
今天尝试使用 into outfile导出数据的时候出现错误: The MySQL server is running with the --secure-file-priv option so it ...
- mysql8出现The MySQL server is running with the --skip-grant-tables option so it cannot execute
执行以下语句的时候 mysql> CREATE USER 'appleyuchi'@'%' IDENTIFIED with mysql_native_password BY 'appleyuc ...
- 安装mysql后在安装目录下只有my-default.ini没有my.ini文件 解决-The MySQL server is running with the --secure-file-priv
WIN10 系统环境 安装mysql后在安装目录下只有my-default.ini没有my.ini文件 . mysql报错 ---------- The MySQL server is running ...
- 1290 the mysql_ERROR 1290:The MySQL server is running with the --secure-file-priv option
MYSQL导出数据报错"ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option ...
- 创建数据库报错--MySQL server is running with the --super-read-only option
创建数据库时报了这个问题: The MySQL server is running with the --super-read-only option so it cannot exeute th ...
- SQL执行报错The MySQL server is running with the read-only
The MySQL server is running with the--read-only option so it cannot execute this statement 看下global设 ...
- Linux:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cann
实操:阿里云CentOS 7.4 64位服务器 修改mysql数据库配置文件无密码登录后,修改密码报错: ERROR 1290 (HY000): The MySQL server is running ...
- mysql导入数据报错ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it
参考:https://blog.csdn.net/u011677147/article/details/64129606 参考:http://blog.itpub.net/31015730/views ...
最新文章
- opencv python下载_[福利] OpenCV4 Python 最新中文版官方教程来了(附下载)
- SAP Commerce Cloud (电商云) UI 的懒加载功能
- 表单提交中的input、button、submit的区别
- mysql永远不用utf8_永远不要在 MySQL 中使用「utf8」
- \pages\WxPay\WxPay.js
- 截断正态分布(Truncated normal distribution)nn.init.trunc_normal_
- 二进制的原码,反码,补码
- 阶段3 3.SpringMVC·_02.参数绑定及自定义类型转换_5 自定义类型转换器演示异常
- 第二章 用户画像建模
- 基于OP放大器的有源模拟滤波器设计--一阶有源滤波器
- 安卓kotlin教程
- 光照度和光强度的区别
- Keil出现Error:Flash Download failed - Could not load file
- OpenCV每日函数 几何图像变换模块 (8) remap函数
- 中科院博士论文致谢部分走红,感动无数网友,其实沉下心来,你我何尝不是前程万里
- MUI-创建子页面打开新页面
- 场景麻将识别开发_基于EMGUCV(一)
- Joe Ross 交易书籍 中英文名
- 论述《区块链智能合约的合同效力认定》去中心化金融的钞能力赛道
- CityGML标准文档(8)(正文——CityGML概述)
热门文章
- 《计算机组成与体系结构:性能设计》读后小记 6、外部存储器
- 关于easyui的一些小知识点(1)
- asp.net mvc使用的心得和问题的解决方法(陆续更新ing)
- 指定module_一个缺失已久的特性 — module模块
- 树莓派 红灯不亮_请问我的树莓派烧了系统后板子只有红灯亮,而act绿灯不亮,并且网口不插网线两个灯都是微微亮,请问?...
- mfc使用cef源代码实现_如何获得微信小游戏跳一跳源码以及源代码组合包括哪些...
- php试卷A高质量含答案,php试卷A高质量含答案
- 怎么把计算机改程序,怎样修改程序软件
- excel文件被写保护怎么解除_u盘被写保护怎么解除,看完你就知道了
- android仿高德地图透明黑字,Android 仿高德地图可拉伸的BottomSheet