Mysql配置文件
[client] #password = your_password port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] port = 3306 socket = /var/lib/mysql/mysql.sock skip-external-locking skip-innodb #skip-name-resolve #skip-networking #skip-locking max_allowed_packe
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
skip-innodb
#skip-name-resolve
#skip-networking
#skip-locking
max_allowed_packet = 32M
max_connections = 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
# Try number of CPU's*2 for thread_concurrency
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
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
推荐阅读
-
MySQL5.7完全卸载步骤详解
-
概述MySQL统计信息
-
mysql 5.7以上版本安装配置方法图文教程(mysql 5.7.12mysql 5.7.13mysql 5.7.14)
-
MySQL常见内存不足启动失败的完美解决方法
-
随机生成八位优惠码并保存至Mysql数据库
-
Mysql5.7中使用group concat函数数据被截断的问题完美解决方法
-
Mysql5.7.17 winx64.zip解压缩版安装配置图文教程
-
MySQL SQL语句分析与查询优化详解
-
Windows 64 位 mysql 5.7以上版本包解压中没有data目录和my-default.ini及服务无法启动的快速解决办法(问题小结)
-
解决mysql ERROR 1045 (28000)-- Access denied for user问题