国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql server is running with the --skip-grant-tables option

2024-07-24 12:51:24
字體:
來源:轉載
供稿:網友

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; 開始只讀模式

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 无棣县| 铁岭县| 双鸭山市| 抚州市| 年辖:市辖区| 绥中县| 美姑县| 屏东县| 探索| 天柱县| 张家界市| 孟村| 修武县| 南澳县| 长阳| 民权县| 天津市| 安丘市| 尼玛县| 镇赉县| 南丹县| 从江县| 读书| 肇源县| 中宁县| 惠来县| 宜川县| 房山区| 贵阳市| 孟州市| 文化| 左贡县| 上饶市| 应用必备| 民丰县| 安阳县| 濮阳县| 宜宾市| 攀枝花市| 田阳县| 安龙县|