免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 993 | 回复: 0

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

论坛徽章:
0
发表于 2011-12-23 01:43 |显示全部楼层

[root@vas11 ~]# 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=4011
master_host=10.10.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_%

default-character-set=gbk     

#for bestv mysql optimization
tmp_table_size=16777216
query_cache_size=33554432
join_buffer_size=531072
thread_cache_size=30
log-slow-queries=slow-query.log
long-query-time=1
max_connections=700

skip-slave-start

key_buffer_size = 256M


##innodb##
innodb_buffer_pool_size= 1500M
innodb_log_file_size = 256M
innodb_log_buffer_size = 32M
innodb_flush_method=O_DIRECT
innodb_flush_log_at_trx_commit=2
innodb-file-per-table
innodb_support_xa = 0
#########

[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