File: //proc/thread-self/root/etc/my.cnf
[mysqld]
disable-log-bin = 1
default-authentication-plugin = mysql_native_password
performance-schema = 0
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
log-error = /var/log/mysqld.log
pid-file = /var/run/mysqld/mysqld.pid
innodb_buffer_pool_size = 134217728
max_allowed_packet = 268435456
open_files_limit=80000
innodb_file_per_table = 1
mysqlx = 0
sql_mode=''
wait_timeout = 60
interactive_timeout = 180
max_connections=2000
innodb_undo_log_truncate=ON
innodb_max_undo_log_size=2G
innodb_purge_threads=4
innodb_purge_batch_size=5000
innodb_buffer_pool_size = 64G # ~75% of RAM, adjust as needed
innodb_buffer_pool_instances = 16 # Helps with concurrency (1 per 8-12GB)
innodb_log_file_size = 2G # Increase if you have large transactions
innodb_flush_method = O_DIRECT # Helps with performance on dedicated DB servers
key_buffer_size = 16G # Adjust this based on the number of indexes in MyISAM tables
innodb_log_buffer_size = 256M
innodb_flush_log_at_trx_commit = 2
innodb_io_capacity = 3000
innodb_io_capacity_max = 6000
thread_cache_size = 256
table_open_cache = 12000
table_definition_cache = 8000
tmp_table_size = 512M
max_heap_table_size = 512M
sort_buffer_size = 4M
read_buffer_size = 4M
join_buffer_size = 4M