1

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.

2
  • 1
    Not at all a solution but using sudo service mysql stop is actually the correct way to stop the service. Why not use that?
    – jobin
    Jan 3, 2014 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. Jan 3, 2014 at 15:50

1 Answer 1

0

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

# respawn
# respawn limit 2 5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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