Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to kill mysqld process but after I had killed the same process started in a different way as a new pid number. For example:

ak@ak-EasyNote-TM98:~$ ps -aux|grep mysql 
mysqld start mysql     6894  7.0  1.4 484304 42940 ?        Ssl  21:13 

And than I get this:

ak@ak-EasyNote-TM98:~$ ps -aux|grep mysqld 
mysqld start mysql     6894  7.0  1.4 484304 42940 ?        Ssl  21:13

How can I find a solution?

share|improve this question

That's because mysqld_safe. mysql's watchdog, notices it and respawns it. You should stop mysql using the provided init script: sudo /etc/init.d/mysql stop

share|improve this answer
That is correct, and another reason should be noted: MySQL needs to safely close certain files with writebacks, especially in reference to MyISAM and InnoDB table data. Failure to shutdown correctly may cause a repair next MySQL startup, or even severe database corruption. – hexafraction Dec 9 '12 at 19:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.