vim /etc/
[mysqld]
port=3306
basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data
max_connect_errors=100
character-set-server=utf8mb4
default-storage-engine=INNODB
default_authentication_plugin=mysql_native_password
lower_case_table_names = 1
interactive_timeout = 1800
wait_timeout = 1800
lock_wait_timeout = 3600
tmp_table_size = 64M
max_heap_table_size = 64M
[mysql]
default-character-set=utf8mb4
[client]
port=3306
default-character-set=utf8mb4