Mar*_*rov 5 mysql windows upgrade
我在 Windows 8 上,我的 SSD 损坏了,我在新驱动器上安装了 Windows。我在 MySQL 5.6.12 之前有过,现在我安装了 5.6.17 并尝试移动整个数据目录。MySQL 安装位置与之前相同。但是当我启动它时,我收到以下错误:
2015-02-23 17:44:44 12492 [Note] Plugin 'FEDERATED' is disabled.
wampmysqld64: Incorrect information in file: '.\mysql\plugin.frm'
2015-02-23 17:44:44 12492 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-02-23 17:44:44 12492 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-23 17:44:44 12492 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-23 17:44:44 12492 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-02-23 17:44:44 12492 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-02-23 17:44:44 12492 [Note] InnoDB: Not using CPU crc32 instructions
2015-02-23 17:44:44 12492 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-02-23 17:44:45 12492 [Note] InnoDB: Completed initialization of buffer pool
2015-02-23 17:44:45 12492 [Note] InnoDB: Restoring page 0 of tablespace 0
2015-02-23 17:44:45 12492 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2015-02-23 17:44:45 12492 [ERROR] InnoDB: space header page consists of zero bytes in data file .\ibdata1
2015-02-23 17:44:45 12492 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2015-02-23 17:44:45 12492 [ERROR] Plugin 'InnoDB' init function returned error.
2015-02-23 17:44:45 12492 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-02-23 17:44:45 12492 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-02-23 17:44:45 12492 [ERROR] Aborting
Run Code Online (Sandbox Code Playgroud)
mysql_upgrade
失败 FATAL ERROR: Upgrade failed
非常感谢您的宝贵时间。
可能帮助您解决此问题的建议:
1) 从数据目录示例中进行备份,将数据文件夹复制到 data_old 文件夹,以防万一出现问题,您可能需要它
my.ini
2)从文件中进行备份
3)复制默认内容my.ini
并将其粘贴到您正在使用的内容中(不要忘记编辑basedir
和datadir
端口号 或编辑当前内容。
4) 从datadir
ib_logfileX中删除
5)尝试启动服务。
6)使用正常转储推荐mysqldump -uroot -Pport -ppassword --all-databases>dump.sql
7) 将其恢复到另一个SID。
mysql_upgrade
8)在新的SID上运行