Parameters are key configuration items in a database system. Improper parameter settings may adversely affect the stable running of databases. This section describes some important parameters for your reference. For details, visit the MySQL official website.
For details on how to modify MySQL parameters on the console, see Modifying Parameters.
The following parameters can result in system security and stability issues if set improperly:
Default value: 1
Function: Controls whether database and tables stored on disks are case sensitive. The value 1 indicates that database and table names are case-insensitive and are lowercase by default.
MySQL 8.0 does not support this parameter.
Impact: Changing this parameter value may cause primary/standby replication exceptions. Exercise caution when performing this operation.
Default value: 1
Function: Controls the balance between strict ACID compliance for commit operations and higher performance. The default setting of 1 is required for full ACID compliance. Logs are written and flushed to disks at each transaction commit. If the value is set to 0, logs are written and flushed to disks once per second. If the value is set to 2, logs are written at each transaction commit and flushed to disks every two seconds.
Impact: If this parameter is not set to 1, data security is not guaranteed. If the system fails, data may be lost.
Default value: 1
Function: Controls how often the MySQL server synchronizes binary logs to the disk. The default setting of 1 requires synchronization of the binary log to the disk at each transaction commit. If the value is set to 0, synchronization of the binary log to the disk is not controlled by the MySQL server but relies on the OS to flush the binary log to the disk. This setting provides the best performance, but in the event of a power failure or OS crash, all binary log information in binlog_cache is lost.
Impact: If this parameter is not set to 1, data security is not guaranteed. If the system fails, data may be lost.
Default value: OFF
Function: Specifies the maximum length of a single-column index in an InnoDB table.
This parameter is available only for MySQL 5.6.
Impact: Changing this parameter value during DDL execution may cause primary/standby replication exceptions. Exercise caution when performing this operation.
The following parameters can affect database performance: