国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 临朐县| 来宾市| 井冈山市| 河西区| 德州市| 定州市| 阿坝县| 凤翔县| 山丹县| 忻城县| 农安县| 太湖县| 乌鲁木齐市| 吉木萨尔县| 武平县| 平度市| 尚义县| 都安| 霍城县| 桐城市| 博野县| 乌拉特前旗| 阳新县| 凌源市| 尚志市| 苗栗县| 巨野县| 阿拉尔市| 南召县| 大洼县| 仪征市| 临城县| 临颍县| 富宁县| 深州市| 元朗区| 莱州市| 天祝| 郓城县| 全州县| 云和县|