# XUI [client] port = 3306 [mysqld_safe] nice = 0 [mysqld] user = mysql port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking skip-name-resolve bind-address = * # MyISAM key_buffer_size = 32M myisam_sort_buffer_size = 4M myisam-recover-options = BACKUP max_length_for_sort_data = 4096 # Connections max_connections = 200 back_log = 256 max_connect_errors = 1000 # Packet and cache max_allowed_packet = 16M open_files_limit = 2048 innodb_open_files = 1024 table_open_cache = 1024 table_definition_cache = 1024 # Temp tables tmp_table_size = 64M max_heap_table_size = 64M # InnoDB innodb_buffer_pool_size = 2G innodb_buffer_pool_instances = 1 innodb_read_io_threads = 4 innodb_write_io_threads = 4 innodb_thread_concurrency = 8 innodb_flush_log_at_trx_commit = 1 innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_io_capacity = 1000 innodb_table_locks = 1 innodb_lock_wait_timeout = 30 # Logging expire_logs_days = 7 max_binlog_size = 64M # Query cache – still disabled query_cache_limit = 0 query_cache_size = 0 query_cache_type = 0 performance_schema = 0 sql_mode = "NO_ENGINE_SUBSTITUTION" [mariadb] thread_cache_size = 64 thread_handling = pool-of-threads thread_pool_size = 4 thread_pool_idle_timeout = 20 thread_pool_max_threads = 256 [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] [isamchk] key_buffer_size = 8M