Zone Duo
Zone Duo

Reputation: 103

Do you already have another mysqld server running on port: 3306 Ubuntu

I am new to Ubuntu and I am trying to run mysql using xampp. Earlier xampp was run successfully and able to run mysql as well. But suddenly when I trying to start it was stopping and it will display an error message on log saying "do you already have another mysqld server running on port: 3306". So I tried to kill the running process of mysql using following command but even that process was get killed, there will be another new process of mysql running when I rerun the following command.

pidof mysqld

sudo kill -9 <pid>

I tried to kill all the processes running on port 3306 as well. But same result happened. Where I was get wrong and how to resolve this?

Upvotes: 0

Views: 4715

Answers (2)

Zone Duo
Zone Duo

Reputation: 103

sudo lsof -i TCP:3306' andsudo kill ` commands worked for me.

Upvotes: 2

ctf learning
ctf learning

Reputation: 11

you can try "netstat -anltp" to find See if 3306 port still being used

Upvotes: 0

Related Questions