A few days ago I installed mysql-server on a machine and then discovered that it was putting it's data file on a partition without nearly enough room. So (because there was nothing I cared about in the DB) I shut it down, sym-linked /var/lib/mysql
to a blank directory on another partition and tried to start it back up.
In short; MySQL now won't start. Upstart seems to think it's running (that is if start mysql
doesn't hang) but there is no mysqld process. I've tried re installing (apt-get purge mysql-server; apt-get insatll mysql-server
) but it seems to be keeping something around (for one thing, it's not asking me to set the root password like it did the first time) and it still wont start.
How do I do a clean reinstall that completely ignores anything that the last install did?
Oh, and is there a way to tweak the config files before apt-get starts up mysqld?