无法在xampp上运行mysql服务器

时间:2015-12-25 09:44:26

标签: mysql windows xampp

我刚刚在Windows XP机器上安装了xampp服务器,无法运行mysql。这是一个错误日志文件文本:

151225 10:41:21 [Note] Plugin 'FEDERATED' is disabled.
151225 10:41:21 InnoDB: The InnoDB memory heap is disabled
151225 10:41:21 InnoDB: Mutexes and rw_locks use Windows interlocked functions
151225 10:41:21 InnoDB: Compressed tables use zlib 1.2.3
151225 10:41:21 InnoDB: Initializing buffer pool, size = 16.0M
151225 10:41:21 InnoDB: Completed initialization of buffer pool
151225 10:41:21 InnoDB: highest supported file format is Barracuda.
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/error-creating-innodb.html
151225 10:41:21 [ERROR] Plugin 'InnoDB' init function returned error.
151225 10:41:21 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
151225 10:41:21 [ERROR] Unknown/unsupported storage engine: InnoDB
151225 10:41:21 [ERROR] Aborting

151225 10:41:21 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete

我尝试过的步骤包括:从数据目录中删除lblogfile0和lblogfile1文件,从mysql配置文件中删除innoDB目录路径。有没有人对这个问题有任何想法?

3 个答案:

答案 0 :(得分:0)

尝试重新安装 Xampp 检查端口是否清晰且打开

答案 1 :(得分:0)

来自XAMPP Windows Help

Microsoft提供了一个更好的防火墙,其中包含自动启动的Service Pack 2(SP2)。此防火墙现在阻止必要的端口80(http)和443(https),Apache无法启动。

快速解决方案:

使用工具栏禁用Microsoft防火墙,并尝试更多地启动XAMPP onces。更好的解决方案是在安全中心内定义一个例外。

The following ports are used for basic functionality:

Apache (HTTP): Port 80
Apache (WebDAV): Port 81
Apache (HTTPS): Port 443
MySQL: Port 3306
FileZilla (FTP): Port 21
FileZilla (Admin): Port 14147
Mercury (SMTP): Port 25
Mercury (POP3): Port 110
Mercury (IMAP): Port 143
Mercury (HTTP): Port 2224
Mercury (Finger): Port 79
Mercury (PH): Port 105
Mercury (PopPass): Port 106
Tomcat (AJP/1.3): Port 8009
Tomcat (HTTP): Port 8080

答案 2 :(得分:0)

从日志中可以看出,InnoDB引擎无法分配数据文件。最好的方法是卸载并重新安装。还要检查哪个版本与Windows XP兼容,因为最新的版本不是(需要1.8.2)。