php - Windows MYSQL 上的 XAMPP 将启动然后突然停止但 APACHE 工作正常

标签 php mysql apache xampp

好吧,我到处寻找解决方案,但没有一个有效。昨天,我的 XAMPP 运行良好。今天,我尝试启动我的 MySQL 服务,但它不起作用。让我更具体一点:这是 XAMPP 日志:

Attempting to start MySQL app...
9:54:00 AM  [mysql]     Status change detected: running
9:54:01 AM  [mysql]     Status change detected: stopped
9:54:01 AM  [mysql]     Error: MySQL shutdown unexpectedly.
9:54:01 AM  [mysql]     This may be due to a blocked port, missing dependencies, 
9:54:01 AM  [mysql]     improper privileges, a crash, or a shutdown by another >method.
9:54:01 AM  [mysql]     Press the Logs button to view error logs and check
9:54:01 AM  [mysql]     the Windows Event Viewer for more clues
9:54:01 AM  [mysql]     If you need more help, copy and post this
9:54:01 AM  [mysql]     entire log window on the forum

这是错误日志:

016-03-23 09:54:00 1d04 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.
160323  9:54:00 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160323  9:54:00 [Note] InnoDB: The InnoDB memory heap is disabled
160323  9:54:00 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
160323  9:54:00 [Note] InnoDB: Memory barrier is not used
160323  9:54:00 [Note] InnoDB: Compressed tables use zlib 1.2.3
160323  9:54:00 [Note] InnoDB: Not using CPU crc32 instructions
160323  9:54:00 [Note] InnoDB: Initializing buffer pool, size = 16.0M
160323  9:54:00 [Note] InnoDB: Completed initialization of buffer pool
160323  9:54:00 [Note] InnoDB: Highest supported file format is Barracuda.
160323  9:54:00 [Note] InnoDB: The log sequence numbers 1665234 and 1665234 in ibdata files do not match the log sequence number 2110930 in the ib_logfiles!
160323  9:54:00 [Note] InnoDB: Database was not shutdown normally!
160323  9:54:00 [Note] InnoDB: Starting crash recovery.
160323  9:54:00 [Note] InnoDB: Reading tablespace information from the .ibd files...
160323  9:54:00 [Note] InnoDB: Restoring possible half-written data pages 
160323  9:54:00 [Note] InnoDB: from the doublewrite buffer...
160323  9:54:01 [Note] InnoDB: 128 rollback segment(s) are active.
160323  9:54:01 [Note] InnoDB: Waiting for purge to start
160323  9:54:01 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 2110930
160323  9:54:01 [Note] Plugin 'FEEDBACK' is disabled.
160323  9:54:01 [Note] Server socket created on IP: '::'.

顺便说一下,Apache 可以正常运行。我尝试过的事情:

正在删除 ibdata1 文件。 更改 my.ini 中的端口。 Skype 未运行。 停止万维网发布服务。

最佳答案

好吧,我自己想通了。所以我查看了 Windows 事件查看器,发现一些错误来自 MySQL。我点击了最近的一个并找到了这个。

mysqld.exe: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed

我替换了所有的数据库文件:db.frm, db. MYD 和 db.MYI(将这些复制到桌面以防万一)与备份中的那些。中提琴再次起作用。所有数据都在那里,甚至是我记得昨天插入的数据。

关于php - Windows MYSQL 上的 XAMPP 将启动然后突然停止但 APACHE 工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36182129/

相关文章:

php mysql 显示好友的帖子

javascript - window.requestFileSystem 在版本 3.3.0 中未定义

php - 什么时候 404 不是 404?

php - 如何使 fsockopen 在使用 tls 时忽略证书

javascript - 数据库中的仪表图值

php - 如何使用 php/mysql 为社交网站的 friend /关注者设置数据库

apache - 在 Windows 7 上安装 tomcat 和完整的 j2ee 套件

php - PRCE : substring exclusion in capturing group result

php - 如何使用 Facebook API 和 PHP 获取好友总数?

mysql - log4jdbc可以和spring boot一起使用吗?