如何解决XAMPP 1.7.7-PHPMyAdmin-Ubuntu中的MySQL错误#2002 [英] How to Solve the XAMPP 1.7.7 - PHPMyAdmin - MySQL Error #2002 in Ubuntu

查看:119
本文介绍了如何解决XAMPP 1.7.7-PHPMyAdmin-Ubuntu中的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说:

MySQL said:

#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.

任何建议将不胜感激.

推荐答案

事实证明,解决方案是停止所有相关服务并解决另一个守护程序已在运行"的问题.

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

这篇关于如何解决XAMPP 1.7.7-PHPMyAdmin-Ubuntu中的MySQL错误#2002的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆