Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I deleted /etc/mysql, everything in it.

I tried:

apt-get --purge remove mysql-server

Then:

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

1 Answer 1

/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

 
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.