JezK
Edit File: my.cnf
[mysqld] datadir = /var/lib/mysql pid_file = /var/lib/mysql/mysql.pid socket = /var/lib/mysql/mysql.sock sql_mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" performance_schema = ON general_log_file = /var/log/mysqld/mysql.log general_log = 0 log_error = /var/log/mysqld/mysql-error.log log_queries_not_using_indexes = 0 slow_query_log = 1 slow_query_log_file = /var/log/mysqld/mysql-slow.log long_query_time = 15 log_warnings = 1 max-connect-errors = 1000000 max_allowed_packet = 268435456 interactive_timeout = 60 wait_timeout = 60 connect_timeout = 60 max_connections = 1024 max_user_connections = 30 table_open_cache = 20480 table_definition_cache = 1024 table_open_cache_instances = 32 query_cache_size = 256M query_cache_type = 1 query_cache_limit = 16M thread_cache_size = 64 table-definition-cache = 1024 table-open-cache = 2048 key_buffer_size = 128M join_buffer_size = 8M read_buffer_size = 2M read_rnd_buffer_size = 16M sort_buffer_size = 4M max_heap_table_size = 512M tmp_table_size = 512M thread_stack = 524288 transaction_prealloc_size = 8192 innodb_autoextend_increment = 48 innodb_max_dirty_pages_pct = 70.000000 innodb_buffer_pool_size = 32G innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 2 innodb_flush_method = O_DIRECT innodb_log_buffer_size = 64M innodb_log_file_size = 16G innodb_temp_data_file_path = ibtmp1:64M:autoextend:max:20G [mysqldump] quick quote-names max_allowed_packet = 512M [isamchk] key_buffer = 16M