如何在 Ubuntu 中解决 XAMPP 1.7.7 - PHPMyAdmin - MySQL 错误 #2002

How to Solve the XAMPP 1.7.7 - PHPMyAdmin - MySQL Error #2002 in Ubuntu(如何在 Ubuntu 中解决 XAMPP 1.7.7 - PHPMyAdmin - MySQL 错误 #2002)
本文介绍了如何在 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

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

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Difficulties installing mysql gem on Ubuntu(在 Ubuntu 上安装 mysql gem 的困难)
Default password of mysql in ubuntu server 16.04(ubuntu server 16.04 mysql的默认密码)
MySQL is extremely slow on EC2(MySQL 在 EC2 上非常慢)
preconfigure an empty password for mysql via debconf-set-selections(通过 debconf-set-selections 为 mysql 预配置一个空密码)
How can I pass a password from a bash script to aptitude for installing mysql?(如何将密码从 bash 脚本传递到 aptitude 以安装 mysql?)
How to edit the path in odbcinst -j(如何在odbcinst-j中编辑路径)