Jez Hancock jez.hancock at
Thu May 29 20:23:17 PDT 2003

On Thu, May 29, 2003 at 06:08:53PM +0200, Ian Barnes wrote:
> Hi,
> I want to remove my mysql installation and re-install from scratch. Now the
> problem. I have 6 active databases. How can i make sure that i dont loose
> those. And that when i have re-installed, that they work immediatilly ??
fwiw you can simply do:
cd /var/db
mv mysql mysql.bak
(uninstall/reinstall w/e mysql)
rm -fr /var/db/mysql
mv /var/db/mysql.bak /var/db/mysql

afaik using something as complicated as tar to archive the dbs first
isn't necessary - mv retains the permission settings fine.

More information about the freebsd-questions mailing list