任何人都可以帮我检查这个 MySQL 配置吗?我有一个 VPS 32GB RAM - 8 个 vcpu 并运行 1 个电子商务。
MySQLTuner 返回给我:
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
join_buffer_size (> 140.0M, or always use indexes with JOINs)
tmp_table_size (> 32M)
max_heap_table_size (> 32M)
table_open_cache (> 407)
Run Code Online (Sandbox Code Playgroud)
my.cnf设置为:
key_buffer_size = 256M
join_buffer_size = 140M
tmp_table_size = 80M
max_heap_table_size = 80M
thread_pool_size = 24
innodb_buffer_pool_instances = 6
innodb_buffer_pool_size = 6G
innodb_log_file_size = 768M …Run Code Online (Sandbox Code Playgroud)