These kind of errors, usually can be caused by
- Bad installation
- Or you are using port
3306
(assuming that you are using the default mysql port) and it is used by other application.
What is PID?
PID means Process Id
. Each program (process) has some Id. You can kill the process using its PID
by running in terminal
sudo kill -9 PID
Where PID
is the process Id that you want to kill.
Probably, you are asking, how can I find the PID that I want to kill?
you can run:
sudo ps aux | grep application
Where application is the name of the application you want to kill. In this case,
sudo ps aux | grep mysql
It will return something like this:
mysql 1612 0.0 0.3 821220 27300 ? Ssl Jul01 0:49 /usr/sbin/mysqld
The second string is the PID (in this case 1612) Therefore; If I want to kill mysql I have to run
sudo kill -9 1612
And Restart Mysql using XAMPP Control Panel
Questions:
- Have you installed another instance of XAMPP?
- Have you installed a standalone Mysql service?
- Have you installed MariaDB or some Database program that use port
3306
?
If answer is YES, you need to change the port or you have to uninstall the other installation.
I hope this works for you.