Mysql 的my.cnf 针对不同类型数据库应用的推荐配置项的具体参数对比
2012-07-12 15:40
483 查看
Text Compare
Produced: 2012-7-12 15:12:07
Mode: All, With Context, Ignoring Unimportant
Left file: my-small.cnf (小型应用)
Right file: my-medium.cnf (中型应用)
Text Compare
Produced: 2012-7-12 15:18:30
Mode: All, With Context, Ignoring Unimportant
Left file: my-medium.cnf (中型应用)
Right file: my-large.cnf (大型应用)
Text Compare
Produced: 2012-7-12 15:19:38
Mode: All, With Context, Ignoring Unimportant
Left file: my-large.cnf (大型应用)
Right file: my-huge.cnf (庞大应用)
Produced: 2012-7-12 15:12:07
Mode: All, With Context, Ignoring Unimportant
Left file: my-small.cnf (小型应用)
Right file: my-medium.cnf (中型应用)
= | ||
[client] | [client] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
[mysqld] | [mysqld] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
skip-locking | skip-locking | |
key_buffer_size = 16K | <> | key_buffer_size = 16M |
max_allowed_packet = 1M | = | max_allowed_packet = 1M |
table_open_cache = 4 | <> | table_open_cache = 64 |
sort_buffer_size = 64K | sort_buffer_size = 512K | |
net_buffer_length= 8K | ||
read_buffer_size = 256K | = | read_buffer_size = 256K |
read_rnd_buffer_size = 256K | <> | read_rnd_buffer_size = 512K |
net_buffer_length =2K | myisam_sort_buffer_size =8M | |
thread_stack = 128K | ||
= | ||
-+ | log-bin=mysql-bin | |
= | ||
-+ | binlog_format=mixed | |
= | ||
server-id = 1 | server-id = 1 | |
[mysqldump] | [mysqldump] | |
quick | quick | |
max_allowed_packet = 16M | max_allowed_packet = 16M | |
[mysql] | [mysql] | |
no-auto-rehash | no-auto-rehash | |
[myisamchk] | [myisamchk] | |
key_buffer_size = 8M | <> | key_buffer_size = 20M |
sort_buffer_size = 8M | sort_buffer_size = 20M | |
read_buffer = 2M | ||
write_buffer = 2M | ||
= | ||
[mysqlhotcopy] | [mysqlhotcopy] | |
interactive-timeout | interactive-timeout |
Produced: 2012-7-12 15:18:30
Mode: All, With Context, Ignoring Unimportant
Left file: my-medium.cnf (中型应用)
Right file: my-large.cnf (大型应用)
[client] | [client] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
[mysqld] | [mysqld] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
skip-locking | skip-locking | |
key_buffer_size = 16M | <> | key_buffer_size = 256M |
max_allowed_packet = 1M | = | max_allowed_packet = 1M |
table_open_cache = 64 | <> | table_open_cache = 256 |
sort_buffer_size = 512K | sort_buffer_size = 1M | |
net_buffer_length= 8K | ||
read_buffer_size = 256K | read_buffer_size = 1M | |
read_rnd_buffer_size = 512K | read_rnd_buffer_size = 4M | |
myisam_sort_buffer_size = 8M | myisam_sort_buffer_size = 64M | |
thread_cache_size= 8 | ||
query_cache_size=16M | ||
= | ||
-+ | thread_concurrency= 8 | |
= | ||
log-bin=mysql-bin | log-bin=mysql-bin | |
binlog_format=mixed | binlog_format=mixed | |
server-id = 1 | server-id = 1 | |
[mysqldump] | [mysqldump] | |
quick | quick | |
max_allowed_packet = 16M | max_allowed_packet = 16M | |
[mysql] | [mysql] | |
no-auto-rehash | no-auto-rehash | |
[myisamchk] | [myisamchk] | |
key_buffer_size = 20M | <> | key_buffer_size = 128M |
sort_buffer_size = 20M | sort_buffer_size = 128M | |
read_buffer = 2M | = | read_buffer = 2M |
write_buffer = 2M | write_buffer = 2M | |
[mysqlhotcopy] | [mysqlhotcopy] | |
interactive-timeout | interactive-timeout |
Produced: 2012-7-12 15:19:38
Mode: All, With Context, Ignoring Unimportant
Left file: my-large.cnf (大型应用)
Right file: my-huge.cnf (庞大应用)
[client] | [client] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
[mysqld] | [mysqld] | |
port = 3306 | port = 3306 | |
socket = /tmp/mysql.sock | socket = /tmp/mysql.sock | |
skip-locking | skip-locking | |
key_buffer_size = 256M | <> | key_buffer_size = 384M |
max_allowed_packet = 1M | = | max_allowed_packet = 1M |
table_open_cache = 256 | <> | table_open_cache = 512 |
sort_buffer_size = 1M | sort_buffer_size = 2M | |
read_buffer_size = 1M | read_buffer_size = 2M | |
read_rnd_buffer_size = 4M | read_rnd_buffer_size = 8M | |
myisam_sort_buffer_size = 64M | = | myisam_sort_buffer_size = 64M |
thread_cache_size = 8 | thread_cache_size = 8 | |
query_cache_size= 16M | <> | query_cache_size = 32M |
= | ||
thread_concurrency = 8 | thread_concurrency = 8 | |
log-bin=mysql-bin | log-bin=mysql-bin | |
binlog_format=mixed | +- | |
= | ||
server-id = 1 | server-id = 1 | |
[mysqldump] | [mysqldump] | |
quick | quick | |
max_allowed_packet = 16M | max_allowed_packet = 16M | |
[mysql] | [mysql] | |
no-auto-rehash | no-auto-rehash | |
[myisamchk] | [myisamchk] | |
key_buffer_size = 128M | <> | key_buffer_size = 256M |
sort_buffer_size = 128M | sort_buffer_size = 256M | |
read_buffer = 2M | = | read_buffer = 2M |
write_buffer = 2M | write_buffer = 2M | |
[mysqlhotcopy] | [mysqlhotcopy] | |
interactive-timeout | interactive-timeout |
相关文章推荐
- Mysql 的my.cnf 针对不同类型数据库应用的推荐配置项的具体参数对比
- MySQL配置文件my.cnf针对innodb 4g RAM以上 配置参数详细说明
- MySQL的my.cnf配置参数详解
- MySQL配置文件my.cnf参数优化和中文详解
- java语言基础(33)——面向对象(父类中没有无参构造编译报错——无法将类 xxx中的构造器 xxx应用到给定类型 实际参数列表和形式参数列表长度不同)
- MySQL my.cnf参数配置优化详解
- MySQL my.cnf 参数 详解
- mysql 配置文件my.ini/my.cnf参数配置详细解析
- mysql 数据库中my.ini的优化 2G内存针对站多 抗压型的设置
- 对MySQL配置参数 my.ini/my.cnf的详细解析
- Mysql中文乱码问题完美解决方案【需要在my.cnf文件中设置client和mysqld的default-character-set=utf8,建数据库和表的时候也需要制定好编码】
- 总结)MySQL my.cnf参数配置优化详解
- MySQL配置文件my.cnf参数优化和中文详解
- MySQL 5.6 my.cnf 参数详细说明
- MySQL配置文件my.cnf参数解释
- MYSQL中MY.CNF配置文件及参数介绍(一)
- mysql配置模板(my-*.cnf)参数详细说明
- MySQL之——CentOS下my.cnf 配置 日志类型及文件配置详解(我本人服务器上的配置,亲测可用)
- 数据库类型总结对比(Java,Hibernate,SQLServer,MySQL,Oracle)
- MyBatis 3 自动生成 主键 针对不同的数据库(oracle/sqlserver/mysql)