Refactor mysql.cnf configuration settings
This commit is contained in:
+22
-17
@@ -1,28 +1,33 @@
|
|||||||
[client]
|
[client]
|
||||||
port = 3306
|
port = 3306
|
||||||
default-character-set = utf8mb4
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
user = mysql
|
port = 3306
|
||||||
port = 3306
|
user = mysql
|
||||||
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
|
||||||
|
|
||||||
default-storage-engine = InnoDB
|
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
||||||
default-authentication-plugin = mysql_native_password
|
|
||||||
character-set-server = utf8mb4
|
default-storage-engine = InnoDB
|
||||||
collation-server = utf8mb4_unicode_ci
|
default-authentication-plugin = mysql_native_password
|
||||||
init_connect = 'SET NAMES utf8mb4'
|
|
||||||
|
character-set-server = utf8mb4
|
||||||
|
collation-server = utf8mb4_unicode_ci
|
||||||
|
|
||||||
|
skip-character-set-client-handshake
|
||||||
|
|
||||||
skip-log-bin
|
skip-log-bin
|
||||||
skip-character-set-client-handshake
|
|
||||||
explicit_defaults_for_timestamp
|
explicit_defaults_for_timestamp
|
||||||
|
|
||||||
slow_query_log
|
slow_query_log = 1
|
||||||
long_query_time = 3
|
long_query_time = 3
|
||||||
slow-query-log-file = /var/log/mysql/mysql.slow.log
|
slow_query_log_file = /var/log/mysql/mysql.slow.log
|
||||||
log-error = /var/log/mysql/mysql.error.log
|
log_error = /var/log/mysql/mysql.error.log
|
||||||
|
|
||||||
|
default-time-zone = '+8:00'
|
||||||
|
|
||||||
default-time-zone = '+8:00'
|
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
default-character-set = utf8mb4
|
default-character-set = utf8mb4
|
||||||
|
|||||||
Reference in New Issue
Block a user