How to forcefully kill mysqld process


Sometimes, I just cannot kill the mysqld process. The mysqld process will automatically start a new one with a different id or port after I kill its process with the command line:

$ sudo kill -9 <mysqld_id>

Then I found this cool solution:

$ sudo mysqladmin -u root -p shutdown

Comments