This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join us in building a kind, collaborative learning community via our updated
Code of Conduct.

Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

I tried that and I get the following error message `Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql status'
– DavidMay 11 '11 at 15:41

2

@David This is the only right answer. service is just a small program that looks up the right init.d script for you. Even though it throws you the "error message", sudo /etc/init.d/mysql start/stop has still done its job. Using service is just the "new way" of using startup scripts. To use service, just execute this on the terminal: service mysql stop or start.
– BloodPhiliaMay 11 '11 at 16:10

I followed your instructions and I get an output. I've edited my question using your procedure. I can tell me if I'm on the right track?
– DavidMay 11 '11 at 15:01

I think shutdown stops and then automatically starts mysql. Is there a command to permanately stop mysql?
– DavidMay 11 '11 at 15:35

@David the automatic restarting is not a behaviour of mysqladmin shutdown . probably ubuntu's /etc/init.d/mysql behaviour? I'm not sure. I think @gerryk's answer is the correct one for your operating system.
– DTestMay 11 '11 at 16:26