MySQL 服务器在 XAMPP 中消失
我正在尝试在 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 没有产生任何结果
I am trying to install xampp 1.6.7 in a Red Hat Enterprise Edition. I followed the installation instructions and after that I started the stack with the command
sudo /opt/lampp/lampp start
And I get te usual response
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
But when I check the status of the components of the stack MySQL is not running, and I get:
Version: XAMPP for Linux 1.5.5
Apache is running.
MySQL is not running.
ProFTPD is running.
This not always happens immediatly. Some times MySQL runs for a little while before crashing. I checked the logs and found nothing.
Edit:
the mysql log says
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 status says:
[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)
and ps -ef | grep mysql yields nothing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当 mysqld 崩溃(我认为它只是关闭)时,您可能需要在
my.cnf
中配置log-error
才能看到任何真实的信息使用。 我不确定 xampp 是如何设置的,但是一个简单的find / -name "my.cnf"
应该会指向该文件的位置。编辑
您想要安装 libgcc。 它应该作为适用于您的平台的 RPM 提供。 让我知道这是否有帮助。
When mysqld crashes (I think it just shuts down), you may need to configure
log-error
inmy.cnf
to see anything of real use. I am not sure how xampp is setup, but a simplefind / -name "my.cnf"
should point you to the location of that file.Edit
You want to install libgcc. It should be available as an RPM for your platform. Let me know if this helps.
做什么
和
说什么?
另外,日志片段也可能有所帮助。
What do
and
say?
Also a snippet of the logs might help as well.