免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1134 | 回复: 0
打印 上一主题 下一主题

my.cnf(1) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-23 01:21 |只看该作者 |倒序浏览
[root@vas3 ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
server-id=9002
master_host=10.29.131.250
master_user=slave
master_password=password
master_port=3306
master_connect-retry=10
replicate_do-db=vas
replicate_do-db=vis_home
replicate_wild_ignore_table=vas.vas_res_%

replicate_do_db=vis3news

default-character-set=gbk
tmpdir=/tmp/mysql
#skip-slave-start
#slave-skip-errors = 1062
#tmp_table_size=10777216
#query_cache_size=10554432
#join_buffer_size=531072
#thread_cache_size=30
log-slow-queries=slow-query.log
long-query-time=1
max_connections=400

#relay-log=mysqld-relay-bin

##innodb##
#innodb_buffer_pool_size= 500M
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit=2
#########

##CNC###
thread_cache_size = 256
table_cache = 1024
log-error = error.log
max-heap-table-size = 256M
key_buffer_size = 512M
sort-buffer-size = 32M
join-buffer-size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 2M
query-cache-size = 256M
query-cache-limit = 2M
tmp-table-size = 256M

innodb-buffer-pool-size = 4G
innodb-additional-mem-pool-size = 128M
innodb-support-xa = 0

expire_logs_days = 3
relay-log = mysqld-relay-bin
relay-log-index = mysqld-relay-bin.index
relay-log-info-file = relay-log.info

########

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
You have new mail in /var/spool/mail/root
[root@vas3 ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
server-id=9002
master_host=10.29.131.250
master_user=slave
master_password=password
master_port=3306
master_connect-retry=10
replicate_do-db=vas
replicate_do-db=vis_home
replicate_wild_ignore_table=vas.vas_res_%

replicate_do_db=vis3news

default-character-set=gbk
tmpdir=/tmp/mysql
#skip-slave-start
#slave-skip-errors = 1062
#tmp_table_size=10777216
#query_cache_size=10554432
#join_buffer_size=531072
#thread_cache_size=30
log-slow-queries=slow-query.log
long-query-time=1
max_connections=400

#relay-log=mysqld-relay-bin

##innodb##
#innodb_buffer_pool_size= 500M
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit=2
#########

##CNC###
thread_cache_size = 256
table_cache = 1024
log-error = error.log
max-heap-table-size = 256M
key_buffer_size = 512M
sort-buffer-size = 32M
join-buffer-size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 2M
query-cache-size = 256M
query-cache-limit = 2M
tmp-table-size = 256M

innodb-buffer-pool-size = 4G
innodb-additional-mem-pool-size = 128M
innodb-support-xa = 0

expire_logs_days = 3
relay-log = mysqld-relay-bin
relay-log-index = mysqld-relay-bin.index
relay-log-info-file = relay-log.info

########

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP