如何在 Ubuntu 中解决 XAMPP 1.7.7 - PHPMyAdmin - MySQL 错误 #2002
我已经浏览了很多论坛并查看了有关类似主题的各种帖子,但似乎对我没有任何帮助.
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 守护程序已在运行.
XAMPP for Linux开始了.
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
相关文章