【发布时间】:2026-01-19 14:20:03
【问题描述】:
在生产服务器(linux机器mysql 5.6.17)上,我试图找到my.cnf来更改系统变量,但my.cnf不在/etc/my.cnf位置。它在 usr/ 目录中。此外,该文件仅包含 cmets,例如 -
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
请告诉我应该在哪里复制 my.cnf 以及如何更改变量,例如 -
innodb_buffer_pool_size = 200M
max_connections = 300
【问题讨论】:
标签: mysql linux my.cnf mysql-5.6 system-variable