mysql 常见错误

来源:互联网 发布:程序员专用计算器在线 编辑:程序博客网 时间:2024/06/05 03:06

错误:数据库启动至“InnoDB: Initializing buffer pool, size = ”时,停止,出现“runtime error R6002”。

解决:客户服务器有病毒,远程连接中毒了,直接替换mysql下的bin文件夹,即可。

参考地址:http://blog.csdn.net/leeafu/article/details/8560719


错误:

InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150311 10:56:24  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Error: trying to add tablespace 41 of name '.\teststonesecretary\tb_ad.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 41 of name '.\stonesecretary\tb_ad.ibd' already exists in the tablespace
InnoDB: memory cache!

解决:有资料说,将my.cnf增加一行“innodb_force_recovery = 4”,让mysql强制恢复innodb,或使用“innodb_force_recovery = 3”,将数据表内容单个导出再新建库并汇入,应该就可以了,如果不行可以测试一下。

参考地址:http://blog.chinaunix.net/uid-12427199-id-3491227.html


错误:cann't create table errno:121

解决:检查表名是否重复,外建名是否重复

错误:got error -1 from storage engine 1030

解决:innodb_force_recovery,默认是没有这个参数,没有的话,他的默认值是0,这个参数的值如果大于0,innodb会被禁止使用insert、update、delete命令,你可以尝试将他的值设置为0


0 0
原创粉丝点击