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 installed ubuntu 13.10 desktop x64 on my laptop. After the installation I installed MySQL Server sudo apt-get install mysql-server mysql-client

Installation wass successful but I noticed the following issues with MySQL. Using sudo service mysql start and sudo service mysql stop the database starts and stops correctly. But when I use sudo /etc/init.d/mysql stop the database service stops and than it gets spawn again automatically without any user input. Using ps -A | grep mysql I noticed that the spawn gets a new PID.

Have you noticed this issue with mysql. For the same reason mysqladmin -u root -p shutdown does the same thing as sudo /etc/init.d/mysql stop

I need to use mysqladmin -u root -p shutdown command as I would like to integrate MySQL with Netbeans 7.4

I would appreciate your help.

share|improve this question
Not at all a solution but using sudo service mysql stop is actually the correct way to stop the service. Why not use that? – i08in Jan 3 '14 at 15:48
I know its the proper way to start and stop a service. But I need to integrate MySQL with Netbeans 7.4. It gives you the option to start and stop the database within the IDE and I'm unable to do so. – Christopher Ebejer Jan 3 '14 at 15:50

Open /etc/init/mysql.conf and comment out the respawn lines:

# respawn
# respawn limit 2 5
share|improve this answer

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.