Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have to kill mysqld process but after it had killed the same process constituted in a different way as a new pid number. e.g :

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

...

and than l get the below:

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.