[mysql] # CLIENT # port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] # GENERAL # user = mysql default-storage-engine = InnoDB #socket = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/server.pid # MyISAM # key-buffer-size = 500M myisam-recover = FORCE,BACKUP # SAFETY # max-allowed-packet = 16M max-connect-errors = 1000000 # DATA STORAGE # datadir = /var/lib/mysql/ # CACHES AND LIMITS # tmp-table-size = 128M max-heap-table-size = 128M query_cache_type = 1 query_cache_limit = 256K query_cache_min_res_unit = 2k query_cache_size = 150M max-connections = 300 thread-cache-size = 50 open_files_limit = 65535 table-definition-cache = 8096 table-open-cache = 15240 # INNODB # innodb-flush-method = O_DIRECT innodb-log-files-in-group = 2 innodb-log-file-size = 256M innodb-flush-log-at-trx-commit = 2 innodb-file-per-table = 1 innodb_buffer_pool_size=10G innodb_thread_concurrency=0 innodb_read_io_threads=64 innodb_write_io_threads=64 # LOGGING # log-error = /var/lib/mysql/mysql-error.log #log-queries-not-using-indexes = 1 #slow-query-log = 1 #slow-query-log-file = /var/lib/mysql/mysql-slow.log max_allowed_packet=268435456