灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:3364回复:0

[mysql]mysql数据库引擎调优

楼主#
更多 发布于:2012-09-01 02:20


mysql数据库引擎调优

---------------myisam----------------

? Optimizing disk storage

? Tuning your tables for performance

  ANALYZE TABLE, OPTIMIZE TABLE,REPAIR TABLE。

? Using the MyISAM utilities

myisam_ftdump 分析全文索引。

myisamchk 表性能分析。

myisamlog 日志变化分析。.

myisampack 压缩表。
  www.atcpu.com  
? Storing a table in index order
? Compressing tables
? Defragmenting tables
? Monitoring the key cache
? Preloading key caches
? Using multiple key caches
? Other parameters to consider

--------------------innodb---------------

? Using the SHOW ENGINE command

? Using InnoDB monitors

? Monitoring logfiles

? Monitoring the buffer pool

? Monitoring tablespaces

? Using INFORMATION_SCHEMA tables
  www.atcpu.com  
? Other parameters to consider:

innodb_thread_concurrency 调整并发线程0-->独立硬盘分区+cpu内核数;

innodb_fast_shutdown  减少关机时间;

innodb_lock_wait_timeout 默认锁超时;

批量导入数据时候: AUTOCOMMIT;暂时停止外键和唯一值限制。

喜欢0 评分0
游客

返回顶部