The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement The first method: Skip-grant-tables is configured in the mysql.ini file. Just add a # in front of it and comment it out. Modify the mysql configuration file, remove Second type: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement Solution: mysql> set global read_only=0; flush privileges; set global read_only=1; (read-write attribute) 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'; explain: set global read_only=0; turn off read-only, can read and write 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; turn off read-only, can read and write set global read_only=1; start read-only mode You may also be interested in:
|
<<: How to use cutecom for serial communication in Ubuntu virtual machine
>>: Vue3.0 routing automatic import method example
Table of contents 1. Pull the image 1.1 Pull the ...
Everyone must be familiar with table. We often en...
Table of contents Development Environment Game en...
The layout problem of irregular picture walls enc...
This article shares the specific code of JavaScri...
First, perform a simple Docker installation. To c...
1. Check the PHP version after entering the termi...
This article example shares the specific code for...
Table of contents Methods of String Object Method...
Table of contents String length: length charAt() ...
Beginners who are exposed to HTML learn some HTML...
Recently, when I was doing a practice project, I ...
Table of contents Overview 1. Develop the require...
<br />I have written two articles before, &q...
HTML is the abbreviation of Hypertext Markup Langu...