【问题标题】:xampp mysql and phpmyadmin dont workxampp mysql 和 phpmyadmin 不起作用
【发布时间】:2016-01-29 12:06:08
【问题描述】:

昨天我使用我的 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?
  • 我使用了 msql 备份文件,解决了这个问题。

标签: mysql xampp


【解决方案1】:

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

【讨论】:

  • 这对我也有用。你能帮我理解它是如何工作的吗?
  • 它工作了,但我必须进行一些配置才能使 phpmyadmin 工作
  • @AngrejKumar 你能详细说明你做了哪些进一步的配置吗?
  • 你能解释一下这个问题的原因吗?
  • 我现在收到一个新错误“引擎中不存在表”。有谁知道如何解决这个问题?
【解决方案2】:

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

  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。

【讨论】:

  • 这对我有用!但是,我没有文件:ibtmp1 和 mysqld.pid,只需删除其他文件就可以了!
  • MySQL 已启动,但我现在收到此错误:引擎中不存在表 'phpmyadmin.pma__tracking'。有什么想法吗?
【解决方案3】:

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

【讨论】:

    猜你喜欢
    • 2014-09-25
    • 2012-03-17
    • 2023-03-29
    • 2017-08-12
    • 2018-02-04
    • 2014-02-25
    • 2020-07-13
    • 1970-01-01
    • 2013-11-07
    相关资源
    最近更新 更多