linux之家
linux之家-让学习更轻松

你的位置:首页>>Linux数据库知识>>Linux系统高负载 MySQL数据库彻底优化(4)

Linux系统高负载 MySQL数据库彻底优化(4)

发表时间:2007-9-23 上午 01:00:51浏览次数:

  #
  # 2) Set the variables below. However, in case you choose this method, then
  # start replication for the first time (even unsuccessfully, for example
  # if you mistyped the password in master-password and the slave fails to
  # connect), the slave will create a master.info file, and any later
  # change in this file to the variables'' values below will be ignored and
  # overridden by the content of the master.info file, unless you shutdown
  # the slave server, delete master.info and restart the slaver server.
  # For that reason, you may want to leave the lines below untouched
  # (commented) and instead use CHANGE MASTER TO (see above)
  #
  # required unique id between 2 and 2^32 - 1
  # (and different from the master)
  # defaults to 2 if master-host is set
  # but will not function as a slave if omitted
  #server-id = 2
  #
  # The replication master for this slave - required
  #master-host =
  #
  # The username the slave will use for authentication when connecting
  # to the master - required
  #master-user =
  #
  # The password the slave will authenticate with when connecting to
  # the master - required
  #master-password =
  #
  # The port the master is listening on.
  # optional - defaults to 3306
  #master-port =
  #
  # binary logging - not required for slaves, but recommended
  #log-bin

  # Point the following paths to different dedicated disks
  #tmpdir = /tmp/
  #log-update = /path-to-dedicated-directory/hostname

  # Uncomment the following if you are using BDB tables
  #bdb_cache_size = 4M
  #bdb_max_lock = 10000

  # Uncomment the following if you are using InnoDB tables
  #innodb_data_home_dir = /var/lib/mysql/
  #innodb_data_file_path = ibdata1:10M:autoextend
  #innodb_log_group_home_dir = /var/lib/mysql/
  #innodb_log_arch_dir = /var/lib/mysql/
  # You can set .._buffer_pool_size up to 50 - 80 %
  # of RAM but beware of setting memory usage too high
  #innodb_buffer_pool_size = 16M
  #innodb_additional_mem_pool_size = 2M
  # Set .._log_file_size to 25 % of buffer pool size
  #innodb_log_file_size = 5M
  #innodb_log_buffer_size = 8M
  #innodb_flush_log_at_trx_commit = 1
  #innodb_lock_wait_timeout = 50

  [mysqldump]
  quick
  max_allowed_packet = 16M

  [mysql]
  no-auto-rehash
  # Remove the next comment character if you are not familiar with SQL
  #safe-updates

  [isamchk]
  key_buffer = 20M
  sort_buffer_size = 20M
  read_buffer = 2M
  write_buffer = 2M

  [myisamchk]
  key_buffer = 20M
  sort_buffer_size = 20M
  read_buffer = 2M
  write_buffer = 2M

  [mysqlhotcopy]
  interactive-timeout

读者体会
暂无回复
姓名:
评论内容:
     
热点导读
Linux系统高负载 My
Linux系统高负载 My
Linux系统高负载 My
Linux系统高负载 My
RHCE实战考试经验
RHCE--实力的最终测试
如何备考RHCE
RHCE应考指南
Linux相关的四个认证
国家Linux技术水平认证
CSIP对其在国家Linu
使用Linux做Radiu
Linux认证基本知识介绍
Oracle数据库开发(二
红帽Linux获美国政府最
Linux操作系统安全配置
如何用Linux Live
物理隔离 Linux如何贯
用SRP建立安全的Linu
Linux安全攻略 了解系
Linux安全攻略 服务器
微软要用数据证明Vista
用LVS在Linux上搭建
Linux操作系统安装VM
下载工具介绍 aMule在
Linux操作系统中安装E
Linux操作系统下网络互
Linux应用问答系列之硬
Linux系统下设置用户登
Apache2.0.48
Copyright 2006-2007 linux77.com Inc. All Rights Reserved
Emai:skyzznj@126.com