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

首頁 > 數據庫 > MySQL > 正文

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

2024-07-24 13:14:05
字體:
來源:轉載
供稿:網友

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

 

注:相關教程知識閱讀請移步到MYSQL教程頻道。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 合肥市| 胶南市| 高阳县| 年辖:市辖区| 辽宁省| 乌兰察布市| 恭城| 昆明市| 花莲县| 阳曲县| 柳江县| 咸宁市| 阳山县| 华池县| 黎川县| 锡林郭勒盟| 桦南县| 鹤庆县| 轮台县| 常宁市| 正镶白旗| 田东县| 任丘市| 昌宁县| 宣武区| 景德镇市| 陆良县| 雷山县| 丘北县| 泾阳县| 平昌县| 西昌市| 亚东县| 三都| 纳雍县| 平乡县| 邵阳市| 广水市| 肥城市| 佳木斯市| 兴仁县|