Page 1 of 1

PHPMyAdmin - MySQL Error #2002 in Ubuntu [Solved]

PostPosted: 03. May 2012 14:11
by XAMPPCyborg
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.

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

PostPosted: 04. May 2012 07:44
by XAMPPCyborg
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

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

PostPosted: 04. May 2012 12:04
by JonB
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)

Re: PHPMyAdmin - MySQL Error #2002 in Ubuntu

PostPosted: 04. May 2012 12:48
by Cyborg965210
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! : )