xampp mysql和phpmyadmin不起作用

Fra*_*cis 1 mysql xampp

昨天我与我的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
Run Code Online (Sandbox Code Playgroud)

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

Fra*_*cis 9

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

  • 我现在收到一个新错误“引擎中不存在表”。有谁知道如何解决这个问题? (4认同)

mCu*_*ube 9

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

  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。

  • 不要这样做,因为删除 ibdata1 意味着所有数据都无法恢复 (4认同)

小智 6

作为正确答案的补充,您不需要删除里面的所有文件xampp/mysql/data/,只需替换为里面xampp/mysql/backup/可以做的任何事情。干杯