去数据目录找一下err日志 打开看下多半能知道原因

解决方案 »

  1.   

    130111 15:55:17  InnoDB: Operating system error number 997 in a file operation.
    InnoDB: Some operating system error numbers are described at
    InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
    InnoDB: Error: could not open single-table tablespace file .\sakila\actor.ibd
    InnoDB: We do not continue the crash recovery, because the table may become
    InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
    InnoDB: To fix the problem and start mysqld:
    InnoDB: 1) If there is a permission problem in the file and mysqld cannot
    InnoDB: open the file, you should modify the permissions.
    InnoDB: 2) If the table is not needed, or you can restore it from a backup,
    InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
    InnoDB: crash recovery and ignore that table.
    InnoDB: 3) If the file system or the disk is broken, and you cannot remove
    InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
    InnoDB: and force InnoDB to continue crash recovery here.
      

  2.   

    完了 估计是数据文件损坏了   有备份就用备份还原
    没备份的话 只能在配置文件里加这个innodb_force_recovery=4强制启动 然后尽快导出能导出的数据吧 
      

  3.   

    如果将my.ini文件改名为my-default.ini里面配置的属性好像没起作用啊。  遇到上面的问题在网上看到另一种方法:删除data目录下的ib_logfile0和ib_logfile1文件。我是按照这个方法弄好的