PHPMyAdmin - MySQL Error #2002 in Ubuntu [Solved]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

PHPMyAdmin - MySQL Error #2002 in Ubuntu [Solved]

Postby XAMPPCyborg » 03. May 2012 14:11

I have been through lots of forums and checked various posts on similar topic but non seems to work out for me.

I have freshly installed XAMPP 1.7.7 on my Ubuntu 11.10 Operating system. Everything is running except for the phpMyAdmin.

Upon hitting: http://localhost/phpmyadmin, I am getting the following error:

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.


Any suggestions would be greatly appreciated.
XAMPPCyborg
 
Posts: 2
Joined: 03. May 2012 14:06
XAMPP Version: 5.6.3
Operating System: Ubuntu 11.10

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

Postby XAMPPCyborg » 04. May 2012 07:44

It turns out that the solution is to stop all the services and solve the “Another daemon is already running” issue.

The commands i used to solve the issue are as follows:

Code: Select all
sudo opt/lampp/lampp stop             
sudo /etc/init.d/apache2 stop   
sudo /etc/init.d/mysql stop

You can also type instead:

Code: Select all
sudo service apache2 stop
sudo service mysql stop

After that, we start again the lampp services:

Code: Select all
sudo opt/lampp/lampp start

Now, there must be no problems while opening:

http://localhost
http://localhost/phpmyadmin
XAMPPCyborg
 
Posts: 2
Joined: 03. May 2012 14:06
XAMPP Version: 5.6.3
Operating System: Ubuntu 11.10

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

Postby JonB » 04. May 2012 12:04

So the 'real' problem was installing XAMPP/LAMPP over an existing LAMP install.

I'm curious on two things, have you restarted your machine? and did you know LAMP was already installed?

Good luck with your project.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

Postby Cyborg965210 » 04. May 2012 12:48

So the 'real' problem was installing XAMPP/LAMPP over an existing LAMP install.
I'm curious on two things, have you restarted your machine? and did you know LAMP was already installed?


Concerning your question, I did restart my machine once after the installation. In respect to LAMPP, i had an old existing installation but i made sure to uninstall it before attempting to work out the new version.

My guess is that i had Apache and mySQL already separately installed and configured from some time ago.
Thanks for your post and wishes.

Happy xampping! : )
Cyborg965210
 
Posts: 1
Joined: 28. July 2011 13:38


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests