我被這問題困擾了好久...
以下是完整的錯誤訊息
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
個人心情和 Linux / FreeBSD 等技術
2009/10/09
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 一樣的大小就行了
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 一樣的大小就行了
2007/08/02
簡單的Mysql語法
最近灌xoops要用到 = =
先筆記一下
進入資料庫
shell> mysql -h host -u user -p
Enter password: ********
伺服器上當前存在什麼資料庫
mysql> SHOW DATABASES;
創建資料庫
mysql> CREATE DATABASE dbname
嘗試存取資料庫
mysql> USE dbname
Database changed
刪除資料庫
mysql> DROP DATABASE dbname
顯示資料庫表的內容
mysql> SHOW TABLES;
取消命令 \c
資料參考
MySQL中文參考手冊
先筆記一下
進入資料庫
shell> mysql -h host -u user -p
Enter password: ********
伺服器上當前存在什麼資料庫
mysql> SHOW DATABASES;
創建資料庫
mysql> CREATE DATABASE dbname
嘗試存取資料庫
mysql> USE dbname
Database changed
刪除資料庫
mysql> DROP DATABASE dbname
顯示資料庫表的內容
mysql> SHOW TABLES;
取消命令 \c
資料參考
MySQL中文參考手冊
訂閱:
文章 (Atom)