【问题标题】:Cannot start mysql in xampp无法在 xampp 中启动 mysql
【发布时间】:2014-10-23 00:55:27
【问题描述】:

Xampp mysql phpmyadmin 几天前运行良好。现在我遇到了这个问题。

我尝试更改端口号,但仍然遇到此问题

一个windows错误提示告诉我:

mysqld.exe 已停止处理以下问题详细信息:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: mysqld.exe
  Application Version:  5.6.16.0
  Application Timestamp:    52d55dcc
  Fault Module Name:    mysqld.exe
  Fault Module Version: 5.6.16.0
  Fault Module Timestamp:   52d55dcc
  Exception Code:   c0000005
  Exception Offset: 00b5957a
  OS Version:   6.1.7601.2.1.0.272.7
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

Xampp 控制面板还提供了以下错误详细信息:

10:47:55 AM  [main]     Control Panel Ready
10:47:56 AM  [mysql]    Attempting to start MySQL app...
10:47:56 AM  [mysql]    Status change detected: running
10:47:59 AM  [mysql]    Status change detected: stopped
10:47:59 AM  [mysql]    Error: MySQL shutdown unexpectedly.
10:47:59 AM  [mysql]    This may be due to a blocked port, missing dependencies, 
10:47:59 AM  [mysql]    improper privileges, a crash, or a shutdown by another method.
10:47:59 AM  [mysql]    Press the Logs button to view error logs and check
10:47:59 AM  [mysql]    the Windows Event Viewer for more clues
10:47:59 AM  [mysql]    If you need more help, copy and post this
10:47:59 AM  [mysql]    entire log window on the forums

我也试过这样做,这对一些有同样问题的人很有效

XAMPP - MySQL shutdown unexpectedly

我打开了错误日志,但我似乎无法理解它的内容。

2014-08-27 09:12:23 3296 [Note] Plugin 'FEDERATED' is disabled.
2014-08-27 09:12:23 ce4 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.
2014-08-27 09:12:23 3296 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-08-27 09:12:23 3296 [Note] InnoDB: The InnoDB memory heap is disabled
2014-08-27 09:12:23 3296 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-08-27 09:12:23 3296 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-08-27 09:12:23 3296 [Note] InnoDB: Not using CPU crc32 instructions
2014-08-27 09:12:23 3296 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2014-08-27 09:12:23 3296 [Note] InnoDB: Completed initialization of buffer pool
2014-08-27 09:12:23 3296 [Note] InnoDB: Highest supported file format is Barracuda.
2014-08-27 09:12:23 3296 [Note] InnoDB: The log sequence numbers 1625987 and 1625987 in ibdata files do not match the log sequence number 3459249 in the ib_logfiles!
2014-08-27 09:12:23 3296 [Note] InnoDB: Database was not shutdown normally!
2014-08-27 09:12:23 3296 [Note] InnoDB: Starting crash recovery.
2014-08-27 09:12:23 3296 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-08-27 09:12:23 3296 [Note] InnoDB: Restoring possible half-written data pages 
2014-08-27 09:12:23 3296 [Note] InnoDB: from the doublewrite buffer...
2014-08-27 09:12:25 3296 [Note] InnoDB: 128 rollback segment(s) are active.
2014-08-27 09:12:25 3296 [Note] InnoDB: Waiting for purge to start
2014-08-27 09:12:25 3296 [Note] InnoDB: 5.6.16 started; log sequence number 3459249
2014-08-27 09:12:25 3296 [Note] Server hostname (bind-address): '*'; port: 3306
2014-08-27 09:12:25 3296 [Note] IPv6 is available.
2014-08-27 09:12:25 3296 [Note]   - '::' resolves to '::';
2014-08-27 09:12:25 3296 [Note] Server socket created on IP: '::'.
2014-08-27 09:12:26 3296 [Note] Event Scheduler: Loaded 0 events
2014-08-27 09:12:26 3296 [Note] c:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '5.6.16'  socket: ''  port: 3306  MySQL Community Server (GPL)

我还遇到了一个解决方案,它再次更改与 Skype 冲突的端口。但是我的电脑上没有安装Skype

XAMPP - Error: MySQL shutdown unexpectedly

我还尝试使用 NetStat 检查我的默认 mysql 端口 3306 是否正在使用,但它提到没有服务正在使用该端口。

感谢您的帮助。

【问题讨论】:

    标签: phpmyadmin xampp mysql


    【解决方案1】:

    您自己的链接 SO 页面有答案。从您的错误日志中:

    2014-08-27 09:12:23 3296 [注意] InnoDB: ibdata 文件中的日志序列号 1625987 和 1625987 与日志序列号不匹配ib_logfiles 中的 3459249!

    然后,从XAMPP - MySQL shutdown unexpectedly中评分最高的答案开始

    • 退出 Xampp 服务器
    • 转到您的 C:\xampp\mysql\data 目录
    • 删除 ibdata1 文件
    • 重启xampp服务器

    试试吧,你应该会成功的。

    【讨论】:

    • 我已经删除了 ibdata1 文件。仍然遇到同样的错误:(
    • 然后我会尝试关闭 mysql,在你的 mysql 配置的 [mysqld] 部分中添加 innodb_force_recovery = 1,然后重新启动 mysql。
    • 感谢您的解决方案。但是我的控制面板上仍然显示相同的错误:(
    • @Borsalino 你找到解决这个问题的方法了吗?我也有同样的问题。。
    • 我也遇到同样的问题
    【解决方案2】:

    当我的错误没有在 mysql 中运行时 InnoDB:警告:不推荐使用 innodb_additional_mem_pool_size。此选项可能会在未来的版本中与选项 innodb_use_sys_malloc 和 InnoDB 的内部内存分配器一起删除。 2015-11-10 15:26:56 4348 [注意] InnoDB:使用互斥锁来引用计数缓冲池页面

    解决方法:删除 ibdata1, all (ib_logfile)... 并重启 xampp

    【讨论】:

    • 太棒了!谢谢!
    【解决方案3】:

    我有同样的问题。不幸的是,上述解决方案对我不起作用。 我已经通过删除 ib_logfile0、ib_logfile1... 解决了所有日志文件,我的 xampp 现在工作正常! 根据上述解决方案,如果我删除 ibdata1 文件,那么我的所有数据库都会丢失。 因此,我保留了 ibdata1 文件并删除了所有日志文件。

    感谢 stackoverflow.com

    【讨论】:

      猜你喜欢
      • 2013-03-07
      • 2022-01-25
      • 2013-08-13
      • 2013-11-05
      • 2015-11-07
      • 2017-01-07
      • 2012-09-12
      相关资源
      最近更新 更多