-
Notifications
You must be signed in to change notification settings - Fork 1
Example: msql.conf
WANJO CHAN edited this page Nov 24, 2018
·
2 revisions
[client]
port = 3308
socket = /tmp/mysql3308.sock
[mysqld]
port = 3308
socket = /tmp/mysql3308.sock
datadir = /usr/local/mysql3308/data
skip-external-locking
key_buffer_size = 32M
max_allowed_packet = 1M
table_open_cache = 128
sort_buffer_size = 768K
net_buffer_length = 8K
read_buffer_size = 768K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
thread_cache_size = 16
query_cache_size = 16M
tmp_table_size = 32M
log-error = /usr/local/mysql3308/mysql3308_error.log
pid-file = /usr/local/mysql3308/mysql3308.pid
explicit_defaults_for_timestamp = true
#skip-networking
max_connections = 100
max_connect_errors = 5
open_files_limit = 65535
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
expire_logs_days = 10
early-plugin-load = ""
default_storage_engine = InnoDB
innodb_data_home_dir = /usr/local/mysql3308/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /usr/local/mysql3308/data
innodb_buffer_pool_size = 128M
innodb_log_file_size = 32M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 32M
sort_buffer_size = 768K
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout