MySQL server cannot be stopped I am using Ubuntu release 14.04, MySQL 14.14 Distrib 5.5.43.

To reset the MySQL root password, as described in the official MySQL doc How to reset the root password, I need to stop the MySQL server.

Using htop before killing the server, I see the following related processes:


Then, as indicated, I stop the MySQL server with the following command:
kill $(cat /var/run/mysqld/mysqld.pid).

But, a few seconds later, all associated processes are automatically restarted under different PIDs:


How can I stop the server without it restarting new processes each time ?
Try stopping the mysql server, instead of killing the process:

sudo /etc/init.d/mysql stop