Google
Edit File: my.cnf
[client] default-character-set = utf8 socket = /var/lib/mysql/mysql.sock [mysql] # CLIENT # port = 3306 socket = /var/lib/mysql/mysql.sock default-character-set = utf8 [mysqld] # GENERAL # user = mysql default_storage_engine = InnoDB socket = /var/lib/mysql/mysql.sock pid_file = /var/lib/mysql/mysql.pid sql_mode = "NO_ENGINE_SUBSTITUTION" performance_schema = off collation-server = utf8_unicode_ci character-set-server = utf8 optimizer_search_depth = 0 log_warnings = 0 max_statement_time = 20 skip-log-bin table_open_cache = 200000 # MyISAM # key_buffer_size = 1024M # find /var/lib/mysql/ -name *.MYI -ls | awk '{s = s + $7} END {print s/1048576 " MB"}' myisam_recover_options = FORCE,BACKUP # SAFETY # max_allowed_packet = 268435456 max_connect_errors = 1000000 # DATA STORAGE # datadir = /var/lib/mysql/ tmpdir = /mysqltmp # CACHES AND LIMITS # max_connections = 700 max_user_connections = 80 wait_timeout = 600 interactive_timeout = 600 # INNODB # innodb_log_file_size = 4G innodb_file_per_table = 1 innodb_buffer_pool_size = 24G tmp_table_size = 64M max_heap_table_size = 64M #innodb_flush_method = O_DIRECT innodb_flush_log_at_trx_commit = 2 innodb_stats_on_metadata = 0 innodb_read_io_threads = 8 innodb_write_io_threads = 8 innodb_io_capacity_max = 4000 table_definition_cache = 50000 table_open_cache_instances = 8 innodb_fatal_semaphore_wait_threshold = 3600 innodb_io_capacity = 2000 # LOGGING # log_error = /var/lib/mysql/mysql-error.log [mysqldump] quick max_allowed_packet = 1G !includedir /etc/my.cnf.d