我最近遇到了win 7的问题所以我不得不重新安装....我不得不用mysql重新安装web服务器
在我拥有mysql 5.1之前,我有5.5。
我已经做了备份 C:\ ProgramData \ MySQL \ MySQL Server 5.1 \ data(我的数据库的复制目录)
我已经将所有目录复制到了 C:\ ProgramData \ MySQL \ MySQL Server 5.5 \ data
检查结果时我只显示myisqm表,没有innodb表!
SHOW ENGINES给了我这个
FEDERATED NO Federated MySQL storage engine NULL NULL NULL
MRG_MYISAM YES Collection of identical MyISAM tables NO NO NO
MyISAM YES MyISAM storage engine NO NO NO
BLACKHOLE YES /dev/null storage engine (anything you write to it... NO NO NO
CSV YES CSV storage engine NO NO NO
MEMORY YES Hash based, stored in memory, useful for temporary... NO NO NO
ARCHIVE YES Archive storage engine NO NO NO
InnoDB DEFAULT Supports transactions, row-level locking, and fore... YES YES YES
PERFORMANCE_SCHEMA YES Performance Schema NO NO NO
那我该怎么办?我检查了目录中的相关文件和... f.e。
classifieds.frm classifieds.MYD classifieds.MYI
好吧,我停止了mysql55服务,我覆盖了这些文件: - ibdata1 - ib_logfile0 - ib_logfile1来自我的备份...但是当我重新启动服务时,我收到一个错误:进程意外终止。检查日志时:
120429 9:52:29 [Note] Plugin 'FEDERATED' is disabled.
120429 9:52:29 InnoDB: The InnoDB memory heap is disabled
120429 9:52:29 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120429 9:52:29 InnoDB: Compressed tables use zlib 1.2.3
120429 9:52:29 InnoDB: Initializing buffer pool, size = 59.0M
120429 9:52:29 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\ib_logfile0 is of different size 0 130023424 bytes
InnoDB: than specified in the .cnf file 0 31457280 bytes!
120429 9:52:29 [ERROR] Plugin 'InnoDB' init function returned error.
120429 9:52:29 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
120429 9:52:29 [ERROR] Unknown/unsupported storage engine: INNODB
120429 9:52:29 [ERROR] Aborting
120429 9:52:29 [Note] C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Shutdown complete
答案 0 :(得分:1)
你有没有得到InnoDB数据文件?即文件名称如下:
- ibdata1
- ib_logfile0
- ib_logfile1
然后尝试从命令行运行
mysql_upgrade -u root -p
然后在出现提示时输入密码。
答案 1 :(得分:0)
好的,JScoobyCed建议我在my.ini文件中更改innodb_log_file_size的大小......
经过几次尝试后,我发现了正确的大小....在我的情况下是innodb_log_file_size = 124M因为我的备份文件ib_logfile0和ib_logfile1大约是126MB由于
我把桌子拿回来了,最后......
wooooo hooooo