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 deleted /etc/mysql, everything in it.

I tried:

apt-get --purge remove mysql-server


apt-get install mysql-server

They will not return, how do I get them to?

There seems to be some very specific config the files need to use upstarts service mysql start including some debian-sys-maint (or something) config settings... wish it was a simple as making a /etc/mysql/my.cnf but its not.

share|improve this question

/etc/mysql/my.cnf isn't owned by the mysql-server package. It's owned by mysql-common (I used dpkg -S /etc/mysql/my.cnf to find this out).

This should work for you:

apt-get purge mysql-common (which will also remove mysql-server)

And then:

apt-get install mysql-server (which, of course, will pull in mysql-common and should repopulate your /etc/mysql directory).

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.