[kwlug-disc] wiping out the initial configuration of mysql?

Khalid Baheyeldin kb at 2bits.com
Tue Feb 16 14:39:25 EST 2010


If this was Debian, I would do this:

# dkg -L mysql-server
This will give me a list of files and directories that the package users.
I then inspect it carefully, and write a script that will purge them. Be
careful not to purge stuff that could be shared by other packages.

# aptitude purge mysql-server
This removes the package and all its binaries and hopefully configuration.
But will not remove data.

# clean-script.sh
This is the script I wrote earlier, which does remove data.

All done.

Now I can do this again.
# aptitude install mysql-server

There are equivalents for RPM, such as rpm -qil (it has been a while ...)
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100216/3f119053/attachment.htm>


More information about the kwlug-disc mailing list