個人心情和 Linux / FreeBSD 等技術

2009/10/19

Argument list too long

錯誤訊息是


bash: /bin/rm: Argument list too long


今天用 rm -f db-* 遇到這個問題 ...


有點鳥呀


改用 find . -name "db-*" | xargs rm -f 就跑的蠻正常的

2009/10/09

Plugin 'InnoDB' init function returned error

我被這問題困擾了好久...


以下是完整的錯誤訊息


InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!
091009 1:52:14 [ERROR] Plugin 'InnoDB' init function returned error.
091009 1:52:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
091009 1:52:14 [ERROR] Unknown/unsupported table type: InnoDB
091009 1:52:14 [ERROR] Aborting




work around 的方式

1. 先把 mysql 停下來
2. 我把 ib_logfile0 和 ib_logfile0 直接移除了
3. 重跑 mysql 就好了 0rz


好了之後再來用 maatkit 修復 replication

2009/09/21

重新開始

無須多說什麼,就聽吧

mysql slave replication error

error log 裡面出現了這行...


Error: log file ./ib_logfile0 is of different size 0 67108864 bytes


仔細查才發現 master 的 my.cnf 裡面
innodb_log_file_size = 64M


而 replication slave 的 my.cnf
innodb_log_file_size = 8M


這樣跑就會出錯了,把 slave 的 my.cnf 改成和 master 一樣的大小就行了