[client] #password = your_password 端口 = 3306 套接字 = /var/lib/mysql/mysql.sock [mysqld] 端口 = 3306 套接字 = /var/lib/mysql/mysql.sock 跳过外部锁定 跳过- innodb #skip-name-resolve #skip-networking #skip-locking max_allowed_packe
[客户]
#password = 你的密码
端口 = 3306
套接字 = /var/lib/mysql/mysql.sock
[mysqld]
端口 = 3306
套接字 = /var/lib/mysql/mysql.sock
跳过外部锁定
跳过-innodb
#skip-name-resolve
#跳过网络
#跳过锁定
max_allowed_packet = 32M
最大连接数 = 7000
#max_seeks_for_key = 3000
key_buffer_size = 512M
table_open_cache = 512
sort_buffer_size = 16M
read_buffer_size = 16M
join_buffer_size = 32M
read_rnd_buffer_size = 32M
myisam_sort_buffer_size = 96M
thread_cache_size = 32
query_cache_size = 32M
tmp_table_size = 128M
wait_timeout = 25
Interactive_timeout = 25
# 尝试 CPU 数量*2 来实现 thread_concurrency
线程并发数 = 8
slow_query_log = 1
long_query_time = 10
Slow_query_log_file = /var/log/slowlog.log #skip-networking
#log-bin = mysql-bin
#expire_logs_days = 20
服务器 ID = 1
[mysqldump]
快点
max_allowed_packet = 16M
[mysql]
禁止自动重新哈希
# 如果您不熟悉 SQL,请删除下一个注释字符
#安全更新
[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
交互超时