!includedir /etc/my.cnf.d [client] port=3306 socket=/var/lib/mysql/mysql.sock default-character-set=utf8 [mysql] default-character-set=utf8 no-auto-rehash [mysqld] user=mysql port=3306 bind-address=__SFD_DB_SERVER_IP__ datadir=/workspace/mysql/data socket=/var/lib/mysql/mysql.sock pid-file=/run/mariadb/mariadb.pid character-set-server=utf8 collation-server=utf8_general_ci lower_case_table_names=1 skip-name-resolve explicit_defaults_for_timestamp=1 max_connections=500 max_connect_errors=10000 open_files_limit=65535 table_open_cache=2048 thread_cache_size=64 innodb_file_per_table=1 innodb_buffer_pool_size=2G innodb_log_file_size=256M innodb_log_buffer_size=16M innodb_flush_log_at_trx_commit=1 sql-mode=NO_ENGINE_SUBSTITUTION log-error=/workspace/mysql/log/mariadb-error.log slow-query-log=1 slow-query-log-file=/workspace/mysql/log/mariadb-slow.log long-query-time=2 [mysqldump] quick max_allowed_packet=64M