Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 managed to start my local mysql server with the --skip-grant-tables option enabled using the command sudo mysql --skip-grant-tables. Now even after I restarted the machine, the mysql server is running with skip-grant-tables enabled. How do I restart mysql server normally, i.e., without the skip-grant-tables option.

I'm on Ubuntu 12.10

share|improve this question

If you modified the config file or the startup file of mysql server, you need to discard these changes.

If you just ran it manually using sudo mysqld, you need to kill it manually also using kill. Then, you should be able to start it normally using /etc/init.d/mysql start or service mysql start.

share|improve this answer
+1 on this. Instead of killing mysqld, you could also do mysqladmin shutdown to mysqld shut down in a clean, orderly manner. – RolandoMySQLDBA Jan 8 '13 at 18:05
@RolandoMySQLDBA: I don't mean using kill -9 as this may cause data loss or tables corruption. I mean just kill using SIGTERM. – Khaled Jan 9 '13 at 7:28

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.