问题描述
我浏览了很多论坛并查看了有关类似主题的各种帖子,但似乎对我不起作用.
I have been through lots of forums and checked various posts on similar topic but non seems to work out for me.
我在我的 Ubuntu 11.10 操作系统上新安装了 XAMPP 1.7.7.除了 phpMyAdmin 之外,一切都在运行.
I have freshly installed XAMPP 1.7.7 on my Ubuntu 11.10 Operating system. Everything is running except for the phpMyAdmin.
点击:http://localhost/phpmyadmin,我收到以下错误:
Upon hitting: http://localhost/phpmyadmin, I am getting the following error:
MySQL 说:
#2002 - The server is not responding
(or the local MySQL server's socket is not correctly configured)
Connection for controluser as defined in your configuration failed.
当我使用以下命令启动服务时:sudo/opt/lampp/lampp start
我得到以下信息:
When i am starting the services with: sudo /opt/lampp/lampp start
I am getting the following:
XAMPP:另一个 Web 服务器守护程序已在运行.
XAMPP:另一个 MySQL 守护进程已经在运行.
XAMPP:另一个 FTP 守护程序已在运行.
适用于 Linux 的 XAMPP开始了.
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.
任何建议将不胜感激.
推荐答案
原来的解决方案是停止所有相关服务并解决Another daemon is already running"的问题.
It turns out that the solution is to stop all the related services and solve the "Another daemon is already running" issue.
我用来解决问题的命令如下:
The commands i used to solve the issue are as follows:
sudo /opt/lampp/lampp stop
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
或者,您也可以输入:
sudo service apache2 stop
sudo service mysql stop
之后,我们再次启动lampp服务:
After that, we again start the lampp services:
sudo /opt/lampp/lampp start
现在打开应该没有问题了:
Now, there must be no problems while opening:
http://localhost
http://localhost/phpmyadmin
这篇关于如何解决 Ubuntu 中的 XAMPP 1.7.7 - PHPMyAdmin - MySQL 错误 #2002的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!