原数据库使用innodb引擎,已备份[dbname]文件夹、ibdata1、ib_logfile0、ib_logfile1,但是没有my.ini,
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了原数据库使用innodb引擎,已备份[dbname]文件夹、ibdata1、ib_logfile0、ib_logfile1,但是没有my.ini,相关的知识,希望对你有一定的参考价值。
新建同样数据库后,把备份的文件覆盖上,mysql启动报错1067,log文件内容如下:
130705 11:57:33 [Note] Plugin 'FEDERATED' is disabled.
130705 11:57:33 InnoDB: The InnoDB memory heap is disabled
130705 11:57:33 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130705 11:57:33 InnoDB: Compressed tables use zlib 1.2.3
130705 11:57:33 InnoDB: Initializing buffer pool, size = 142.0M
130705 11:57:33 InnoDB: Completed initialization of buffer pool
InnoDB: Error: checksum mismatch in data file .\ibdata1
130705 11:57:33 InnoDB: Could not open or create data files.
130705 11:57:33 InnoDB: If you tried to add new data files, and it failed here,
130705 11:57:33 InnoDB: you should now edit innodb_data_file_path in my.cnf back
130705 11:57:33 InnoDB: to what it was, and remove the new ibdata files InnoDB created
130705 11:57:33 InnoDB: in this failed attempt. InnoDB only wrote those files full of
130705 11:57:33 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
130705 11:57:33 InnoDB: remove old data files which contain your precious data!
130705 11:57:33 [ERROR] Plugin 'InnoDB' init function returned error.
130705 11:57:33 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130705 11:57:33 [ERROR] Unknown/unsupported storage engine: INNODB
130705 11:57:33 [ERROR] Aborting
请教如何修改my.ini,或如何能正常启动mysql,只要能导出[dbname].sql就行
直接复制来的,
我一共两套数据库需要回复,第一套我备份的有my.ini,停掉mysql服务后,
把备份的[dbname]文件夹、ibdata1、ib_logfile0、ib_logfile1和my.ini,复制到同样路径覆盖,mysql正常启动,数据库恢复成功,
第二套我没有my.ini,其他操作一样,但就是始终启动mysql报错1067,一直没有办法
130705 11:57:33 InnoDB: you should now edit innodb_data_file_path in my.cnf back
130705 11:57:33 InnoDB: to what it was, and remove the new ibdata files InnoDB created
以上这个步骤你有没有做?
指定文件路径,是设对了的,然后覆盖了数据文件,也是对的
一种基于MySQL Innodb数据引擎的增备方法_爱学术
【摘要】针对MySql Innodb数据引擎二进制日志备份较慢的问题,提出了一种基于MySQL Innodb存储引擎的增量备份方法,可以实现最短时间的备份,每次记录相对于上次完全备份点差异的数据。增备是速度最快的备份方法,而且需要最少的存储空间。但是增备却需要最长时间来完成恢复。增备方法基于日志页序列号,通过计算差值而直接对LOG页进行拷贝而实现,避免重复执行SQL语句,相比优于以前的BINLOG复制增备方案。
转载至爱学术:https://www.ixueshu.com/document/a68ef41d2bf15013318947a18e7f9386.html
以上是关于原数据库使用innodb引擎,已备份[dbname]文件夹、ibdata1、ib_logfile0、ib_logfile1,但是没有my.ini,的主要内容,如果未能解决你的问题,请参考以下文章