xampp mysql 和 phpmyadmin 不工作

xampp mysql and phpmyadmin dont work

昨天我使用了我的 xampp,我使用了 apache 和 mysql 服务。 今天我想启动 mysql 服务,但没有成功。我试着在论坛上搜索解决方案,但我找不到任何东西,所以我问你。

在 mysql 停止工作后,我在日志文件中找到这条消息:

2015-10-29 12:04:02 148c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
151029 12:04:02 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151029 12:04:02 [Note] InnoDB: The InnoDB memory heap is disabled
151029 12:04:02 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
151029 12:04:02 [Note] InnoDB: Memory barrier is not used
151029 12:04:02 [Note] InnoDB: Compressed tables use zlib 1.2.3
151029 12:04:02 [Note] InnoDB: Not using CPU crc32 instructions
151029 12:04:02 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151029 12:04:02 [Note] InnoDB: Completed initialization of buffer pool
151029 12:04:02 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-29 12:04:02 148c  InnoDB: Operating system error number 2 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
151029 12:04:02 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_index_stats'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
151029 12:04:02 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_index_stats"', ignored.
151029 12:04:02 [Note] InnoDB: 128 rollback segment(s) are active.
151029 12:04:02 [Note] InnoDB: Waiting for purge to start
151029 12:04:02 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1665234
151029 12:04:02 [Note] Plugin 'FEEDBACK' is disabled.
151029 12:04:02 [Note] Server socket created on IP: '::'.
151029 12:04:02 [ERROR] mysqld.exe: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
151029 12:04:02 [ERROR] Fatal error: Can't open and lock privilege tables: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed

你能帮我解决这个问题吗?

我已经解决了这个问题。我将 xampp/mysql/backup/ 中的所有文件复制到 xampp/mysql/data/

除了正确答案之外,您不需要删除 xampp/mysql/data/ 中的所有文件,只需替换为 xampp/mysql/backup/ 中的任何文件即可。干杯

我今天遇到了类似的问题,并且能够通过以下方式解决它:

  1. 关闭XAMPP控制面板

  2. 删除/xampp/mysql/data下的以下文件:

    • aria_log.**1
    • aria_log_control
    • ib_logfile0
    • ib_logfile1
    • ibdata1
    • ibtmp1
    • mysqld.pid
  3. 并修改 multi-master.info 并删除其所有内容然后保存文件。

  4. 再次打开 Xampp 和 运行 mysql。