#
# The MySQL database server configuration file.
#
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
default-character-set=utf8
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
#query_cache_size = 32M
table_cache = 4096
thread_cache_size = 32
max_heap_table_size = 64M #32M
tmp_table_size = 64M # 32M
innodb_buffer_pool_size = 256M # 32M
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
# transaction-isolation = READ-COMMITTED
default-storage-engine = innodb
bind-address = 127.0.0.1
key_buffer = 64M
max_allowed_packet = 16M
thread_stack = 128K
myisam-recover = BACKUP
expire_logs_days = 10
max_binlog_size = 100M
join_buffer_size = 64M # 1M
sort_buffer_size = 64M
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_unicode_ci
init-connect = "SET NAMES utf8"
skip-character-set-client-handshake
log_error = /var/log/mysql_log_error
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
default-character-set = utf8
[mysql]
[isamchk]
key_buffer = 16M
!includedir /etc/mysql/conf.d/ |