校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > mysql server is running with the --skip-grant-tables option

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

熱門標簽:上海智能外呼系統代理商 成都優派外呼系統 扎樣申請400電話 沈陽電銷外呼系統原理是什么 ps制作地圖標注gif 聊城智能外呼系統運營商 寧波企業外呼系統收費 電子地圖標注電話 地圖標注人員兼職

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 --read-only option so it cannot execute this statement
  • mysql數據庫mysql: [ERROR] unknown option ''--skip-grant-tables''
  • mysql視圖之確保視圖的一致性(with check option)操作詳解
  • MySQL存儲表情時報錯:java.sql.SQLException: Incorrect string value:‘\xF0\x9F\x92\xA9\x0D\x0A...’的解決方法
  • Mysql中的NULL和Empty String
  • javascript連接mysql與php通過odbc連接任意數據庫的實例
  • ubuntu下apt-get安裝和徹底卸載mysql詳解
  • MySQL利用AES_ENCRYPT()與AES_DECRYPT()加解密的正確方法示例
  • 利用pt-heartbeat監控MySQL的復制延遲詳解
  • MySQL pt-slave-restart工具的使用簡介

標簽:AXB 三明 汕頭 咸寧 內江 宿州 林芝 朔州

巨人網絡通訊聲明:本文標題《mysql server is running with the --skip-grant-tables option》,本文關鍵詞  mysql,server,running,with,the,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《mysql server is running with the --skip-grant-tables option》相關的同類信息!
  • 本頁收集關于mysql server is running with the --skip-grant-tables option的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 南川市| 巴林右旗| 阿勒泰市| 盐山县| 格尔木市| 青海省| 广州市| 海口市| 九龙坡区| 东山县| 杭锦后旗| 光山县| 磴口县| 大埔区| 亳州市| 醴陵市| 定陶县| 连州市| 平阳县| 澄江县| 镇宁| 井冈山市| 宝鸡市| 太仆寺旗| 宣汉县| 宁晋县| 孙吴县| 塔河县| 杭锦旗| 比如县| 太仆寺旗| 新兴县| 廊坊市| 云阳县| 苍山县| 腾冲县| 河间市| 汾阳市| 绥德县| 秦安县| 吉水县|