Monster Oasis
覺得累就是進步的開始!

2009/12/30

some mysql tips

Filed under: DATABASE,JOB — Tags: , — 9:42 am
  • mysql 的 innodb 重裝或改了 innodb_log_file_size 後, 發現 xxx/yyy.frm 壞了 , 解決辦法是 把 /var/lib/mysql/ib_logfile* 砍了, 再 restart mysql
  • http://dev.mysql.com/doc/refman/5.1/en/alter-table.html 中提到….
    若要大量 bluk 作 insert 動作前, 下 ALTER TABLE tbl_name DISABLE KEYS , 這樣可以讓 insert 加快,

    但是作完 insert 後還是得 enable keys , 把 missing 的 indexs 補回來, 我想這時也是非常耗時間吧!!

    另外 enable / disable keys 對於 mysql 5.1.1 以前的 partition table 沒有用

Related URL:
  1. Protected: dbs222 mysql innodb Troubleshutting
  2. mysql performance tunning – pdf
  3. 使用 mysql partition table sample
  4. Protected: mysql myisam performance tunning 過程 – sample data
  5. Protected: mysql innodb 的部份參數 , my.cnf
  6. MySQL performance tunning
  7. mysql Full-Text Search syntax
  8. MySQL – Optimizing Database Structure
  9. mysql index 的建立/使用 , Multiple-Column Indexes
  10. Sun 買 MySQL , Oracle 買 Sun

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.


www.monster.com.tw , © Copyright 2008