File: //proc/thread-self/root/proc/self/root/etc/my.cnf
[mysql]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
# === Required Settings ===
basedir = /usr/
bind_address = *
datadir = /var/lib/mysql/
max_allowed_packet = 256M
max_connect_errors = 1000000
pid_file = /var/lib/mysql/mysql.pid
port = 3306
skip_external_locking
socket = /var/lib/mysql/mysql.sock
tmpdir = /tmp
user = mysql
performance_schema = 0
skip-log-bin
default-authentication-plugin = mysql_native_password
# === SQL Compatibility Mode ===
sql_mode = ""
# === InnoDB Settings ===
default_storage_engine = InnoDB
innodb_buffer_pool_instances = 1
innodb_buffer_pool_size = 2G
innodb_file_per_table = 1
innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 16M
innodb_log_files_in_group = 2
innodb_log_file_size = 2G
innodb_stats_on_metadata = 0
innodb_read_io_threads = 64
innodb_write_io_threads = 64
# === MyISAM Settings ===
key_buffer_size = 64M
low_priority_updates = 1
concurrent_insert = 2
# === Connection Settings ===
max_connections = 150
back_log = 512
thread_cache_size = 100
thread_stack = 192K
interactive_timeout = 50
wait_timeout = 50
# === Buffer Settings ===
innodb_sort_buffer_size = 2M
join_buffer_size = 1M
read_buffer_size = 3M
read_rnd_buffer_size = 4M
sort_buffer_size = 1M
# === Table Settings ===
table_definition_cache = 40000
table_open_cache = 40000
table_open_cache_instances = 8
open_files_limit = 60000
max_heap_table_size = 64M
tmp_table_size = 64M
# === Search Settings ===
ft_min_word_len = 3
# === Logging ===
log_error = /var/lib/mysql/mysql_error.log
log_queries_not_using_indexes = 0
long_query_time = 3
slow_query_log = 1
slow_query_log_file = /var/lib/mysql/mysql_slow.log
[mysqldump]
quick
quote_names
max_allowed_packet = 512M