0
votes

MySQL already running, but when open http://localhost/phpmyadmin/ I get error like this :

#2002 - Connection refused The server is not responding (or the local server's socket is not correctly configured).

when I try run from command line with sudo /opt/lampp/lampp start, I get the message like this :

XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.

I have checked in ps -aux | grep mysqld

I get message like this:

ahmadso+ 7118 0.0 0.0 15948 2220 pts/6 S+ 09:23 0:00 grep --color=auto mysqld

when I try sudo service mysql stop I get message like this :

stop: Unknown instance:

I use Ubuntu operating system, I have tried to uninstall and reinstall xampp, but does not resolve the issue.

please help me.

1
Do you have another mysql running on the machine? Try doing which mysqld and see which paths you getytpillai
Thank you for responding, I find mysql in / usr / sbin / mysqld then what should I do. @ytpillaiAhmad Sob
Try stopping mysql using the mysqld command itself (path_to_mysqld stop)ytpillai
The response you get when running ps only shows the grep process running, it doesn't show the actual mysqld process running. This suggests that the MySQL daemon might not actually be running. Check the MySQL error log for hints.Isaac Bennetch

1 Answers

0
votes

Try stopping all XAMPP Services and then start them again:

Stop

sudo service apache2 stop
sudo service mysql stop

Start

sudo service apache2 start
sudo service mysql start