maradb10.2.14无注释的通用配置,可以直接拷过去
[mysqld]
port = 3306
datadir=/home/datum/data/appdata/maria_data/dbdata
socket=/home/datum/data/appdata/maria_data/sock/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
log-error=/home/datum/data/logs/mariadb/mysql.log
slow-query-log = 1
slow-query-log-file =/home/datum/data/logs/mariadb/mysql-slow.log
long_query_time =5
wait_timeout=2147483
interactive_timeout=2147483
innodb_lock_wait_timeout=10
event_scheduler=1
innodb_file_per_table=1
thread_cache_size =32
query_cache_type=1
query_cache_size=128M
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld]
port = 3306
datadir=/home/datum/data/appdata/maria_data/dbdata
socket=/home/datum/data/appdata/maria_data/sock/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
thread_concurrency = 8
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
log-error=/home/datum/data/logs/mariadb/mysql.log
slow-query-log = 1
slow-query-log-file =/home/datum/data/logs/mariadb/mysql-slow.log
long_query_time =5
wait_timeout=2147483
interactive_timeout=2147483
innodb_lock_wait_timeout=10
event_scheduler=1
innodb_file_per_table=1
thread_cache_size =32
query_cache_type=1
query_cache_size=128M
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout