当我打开XAMPP并单击start MySQL按钮时,它会给我一个错误.

下午12:19:12[mysql]正在try 启动mysql应用程序

以下是错误日志(log)的内容:

2013-08-02 12:19:12 4536[注]插件"联邦"已禁用

最重要的错误信息如下:

2013-08-02 12:19:12 4536 [ERROR] InnoDB:

日志(log)的其余部分:

InnoDB: Error: could not open single-table tablespace file .\xat\payments.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.

这些错误的原因是什么?我如何纠正它们?

推荐答案

IMPORTANT:NOT删除ibdata1个文件.你可以毁掉你所有的数据库.

相反,首先try 使用XAMPP附带的MySQL backup folder.接下来的步骤也是如此:

  1. 将文件夹mysql/data重命名为mysql/data_old
  2. 复制mysql/backup个文件夹,并将其命名为mysql/data
  3. 将所有数据库文件夹从mysql/data_old复制到mysql/data(mysqlperformance_schemaphpmyadmin文件夹除外)
  4. mysql/data_old/ibdata1个文件复制到mysql/data文件夹中
  5. 从XAMPP控制面板启动MySQL

瞧!

Mysql相关问答推荐

在MySQL中查找具有公共值的列名

我如何才能从MySQL过程中获取LARAVEL端的数据?

MySQL有没有办法直接从CSV文件中读取而不是导入它?

如何在 MySQL Workbench 中设置 DateTime 列的默认值?

完全匹配 IN 子句中的所有值

如何根据 R 中的价格范围将数据从一列复制到新列?

从三个不同的表中生成两列,并使用分组变量计算这些列的比率

获取 MySQL 中每一行之间负差的总和

MYSQL REGEXP_REPLACE 在数字之后

在一个 SQL 查询中对同一列中相同类型的不同值求和

查询以从约会表中获取可用空档

在 MySQL 中 Select COUNT of MAX

如何查询打印已售罄的产品? [MYSQL]

结果差异(MySQL 5.7 vs MySQL 8.0)

自动登录 phpMyAdmin

你如何在 Node.js 中模拟 MySQL(没有 ORM)?

我如何决定何时使用右连接/左连接或内连接或者如何确定哪个表在哪一侧?

如何在特定数据库中创建表?

将 JavaScript 到日期对象转换为 MySQL 日期格式 (YYYY-MM-DD)

在网页的 HTML 表中显示 MySQL 数据库表中的值