MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2913|回复: 0
打印 上一主题 下一主题

经过高手优化的MySQL数据库实例

[复制链接]
跳转到指定楼层
1#
发表于 2008-8-14 17:21:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  据说这是高手优化的MySQL,供大家参考,其中连接数: max_connections=1500可以根据服务器的性能更改.
#set-variable = connect_timeout=5
#set-variable = wait_timeout=5

  建议启用,负担重的服务器可以适当减少持续连接时间
 
    [mysqld]
  basedir=D:/mysql
  #bind-address=ip
  datadir=D:/mysql/data
  #language=D:/mysql/share/your language directory
  #slow query log#=
  #tmpdir#=
  #port=3306
  set-variable = max_connections=1500
  skip-locking
  #skip-networking
  set-variable = key_buffer=384M
  set-variable = max_allowed_packet=1M
  set-variable = table_cache=512
  set-variable = sort_buffer=2M
  set-variable = record_buffer=2M
  set-variable = thread_cache=8
  # Try number of CPU's*2 for thread_concurrency
  set-variable = thread_concurrency=8
  set-variable = myisam_sort_buffer_size=64M
  #set-variable = connect_timeout=5
  #set-variable = wait_timeout=5
  server-id = 1
  [isamchk]
  set-variable = key_buffer=128M
  set-variable = sort_buffer=128M
  set-variable = read_buffer=2M
  set-variable = write_buffer=2M
  [myisamchk]
  set-variable = key_buffer=128M
  set-variable = sort_buffer=128M
  set-variable = read_buffer=2M
  set-variable = write_buffer=2M
  [WinMySQLadmin]
  Server=D:/mysql/bin/mysqld-nt.exe
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 转播转播 分享分享 分享淘帖 顶 踩
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-11-10 07:04 , Processed in 0.060146 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表