Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/mysql/conf/my.cnf

96 lines
2.0 KiB

6 years ago
[client]
4 years ago
user = root
6 years ago
#password = your_password
port = 3306
4 years ago
socket = {$SERVER_APP_PATH}/mysql.sock
6 years ago
[mysqld]
4 years ago
# 5.6
#default-authentication-plugin=sha256_password
3 years ago
user = mysql
6 years ago
port = 3306
4 years ago
socket = {$SERVER_APP_PATH}/mysql.sock
6 years ago
datadir = {$SERVER_APP_PATH}/data
6 years ago
log-error = {$SERVER_APP_PATH}/data/error.log
6 years ago
default_storage_engine = MyISAM
key_buffer_size = 8M
4 years ago
max_allowed_packet = 100M
6 years ago
table_open_cache = 32
sort_buffer_size = 256K
net_buffer_length = 4K
read_buffer_size = 128K
read_rnd_buffer_size = 256K
myisam_sort_buffer_size = 4M
thread_cache_size = 4
4 years ago
lower_case_table_names=2
6 years ago
query_cache_size = 4M
tmp_table_size = 8M
6 years ago
6 years ago
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535
6 years ago
4 years ago
#skip-networking
#skip-name-resolve
#skip-external-locking
#loose-skip-innodb
#skip-grant-tables
6 years ago
log-bin=mysql-bin
binlog_format=mixed
6 years ago
server-id = 1
6 years ago
expire_logs_days = 10
slow_query_log=1
slow-query-log-file={$SERVER_APP_PATH}/data/mysql-slow.log
long_query_time=3
#log_queries_not_using_indexes=on
6 years ago
4 years ago
relay-log=mdserver
relay-log-index=mdserver
4 years ago
#master
4 years ago
#binlog-do-db
binlog-ignore-db = test
binlog-ignore-db = mysql
binlog-ignore-db = information_schema
binlog-ignore-db = performance_schema
4 years ago
4 years ago
#slave
log-slave-updates
4 years ago
#replicate-do-db
replicate-ignore-db = information_schema
replicate-ignore-db = performance_schema
replicate-ignore-db = mysql
replicate-ignore-db = test
4 years ago
6 years ago
default_storage_engine = InnoDB
innodb_data_home_dir = {$SERVER_APP_PATH}/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = {$SERVER_APP_PATH}/data
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 120
innodb_max_dirty_pages_pct = 90
innodb_read_io_threads = 1
innodb_write_io_threads = 1
6 years ago
innodb_file_per_table=1
6 years ago
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
6 years ago
key_buffer_size = 20M
sort_buffer_size = 20M
6 years ago
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
6 years ago
interactive-timeout