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
Disclaimer: Since the project requires the use of...
Demand background The project is made using Vue, ...
When Mysql occupies too much CPU, where should we...
RPM package management A packaging and installati...
IMG tag basic analysis In HTML5, the img tag has ...
How to solve the Mysql transaction operation fail...
This article example shares the specific code of ...
When developing and debugging a web application, ...
You need to apply CSS to div or span at the same t...
HTML implements 2-column layout, with fixed width...
Docker private image library Docker private image...
Table of contents Preface 1. Usage examples 2. Im...
The computer system is: win7 This article is main...
Achieve resultsRequirements/Functionality: How to...
1. Docker installation and settings #Install Cent...