Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer

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
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.