some mysql tips

  • 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 沒有用

Comments are closed.

Related URL:
  1. Protected: [LAB] Best practices guidelines for running MySQL databases on NetApp® storage , 測試結果
  2. amazon aws ami LAMP / NGINX / PHP / memcache steps
  3. 建 mysql partition table 遇到的問題
  4. Protected: [memo] mysql CPU / MEMORY / DISK / SERVER
  5. [memo] MySQL PROCEDURE ANALYSE / schema 分析
  6. Protected: dbs222 mysql innodb Troubleshutting
  7. mysql performance tunning – pdf
  8. 使用 mysql partition table sample
  9. Protected: mysql myisam performance tunning 過程 – sample data
  10. Protected: mysql innodb 的部份參數 , my.cnf