Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to kill mysql process using mac

Tags:

mysql

I used ps ax | grep mysql to check whether mysql process exists and i found

5323 s000 S+ 0:00.00 grep mysql .

I would like to kill the process but the number changed automatically.

When i enter ps ax | grep mysql, the content changed like

5507 s000 S+ 0:00.00 grep mysql

BTW, i have tried the way to deleted mysql that is the most popular way on the internet. But the mysql process still on my computer.

Anyone could give me a hint would be highly appreciated.

like image 547
Peter Tsung Avatar asked Mar 18 '17 15:03

Peter Tsung


1 Answers

just did it. I tried: 1) get pid

netstat -vanp tcp | grep 3306

or

ps ax | grep mysql

2) sudo kill -9 [pid] It seems that I killed it right? but wait... when show mysql pid again, it comes back again with a different pid. Then I remember mysql in system preferences. Press the icon, and press stop server button. SUCCESS

EDIT: it is here

bing searching results

like image 200
Tiina Avatar answered Oct 27 '22 10:10

Tiina