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
This article shares the specific code of the vue-...
This article example shares the specific code of ...
1. Scenario display The tomcat log occasionally r...
Preface We often need to do something based on so...
MySQL version: MySQL Community Edition (GPL) ----...
First, I will give you the VMware 14 activation c...
Mysql5.7.19 version is a new version launched thi...
To put it simply, the IP of the virtual machine u...
This article shares the installation tutorial of ...
1. Solution 1.1 Describing the interface context-...
Prelude We all know that nginx is an excellent re...
Preface To solve the single point of failure, we ...
need: Use vue to realize QR code scanning; Plugin...
The <script> tag In HTML5, script has the f...
1. Log in to MySQL database mysql -u root -p View...