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

remove ALL settings. remove ALL databases. remove ALL replication settings.

WHat command do I run to remove that?

share|improve this question
What platform? Windows / Linux / etc... – Keith Dec 8 '09 at 20:03

First remove MySQL in ordinary way (using apt-get purge or yum remove). After that issue:

rm -rf /var/lib/mysql

to be sure that MySQL data is completely deleted

share|improve this answer
Then, remove /etc/my.cnf and $HOME/.my.cnf to destroy any lingering configuration settings. – Sam Halicke Dec 8 '09 at 20:00

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.