MySQL服务器在XAMPP中消失了

时间:2020-03-06 15:01:30  来源:igfitidea点击:

我正在尝试在Red Hat Enterprise Edition中安装xampp 1.6.7. 我按照安装说明进行操作,然后使用以下命令启动堆栈

sudo /opt/lampp/lampp start

我得到平常的回应

XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

但是当我检查堆栈组件的状态时,MySQL没有运行,并且得到了:

Version: XAMPP for Linux 1.5.5
Apache is running.
MySQL is not running.
ProFTPD is running.

这并非总是立即发生。有时MySQL崩溃前会运行一会儿。我检查了日志,却一无所获。

编辑:

mysql日志说

081002 10:41:22  mysqld started
libgcc_s.so.1 must be installed for pthread_cancel to work
081002 10:41:24  mysqld ended

mysql状态说:

[root@localhost lampp]# bin/mysql status
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2)

和ps -ef | grep mysql不产生任何结果

解决方案

做什么

mysql status

ps aux | grep mysql

说?

日志的摘要也可能会有所帮助。

当mysqld崩溃时(我认为它只是关闭了),我们可能需要在my.cnf中配置log-error才能看到真正有用的东西。我不确定如何设置xampp,但是一个简单的find / -name" my.cnf"应该将我们指向该文件的位置。

编辑

我们要安装libgcc。它应该作为平台的RPM可用。让我知道是否有帮助。