Talk:UpgradeDisk

From SME Server
Revision as of 16:01, 25 December 2008 by Christian (talk | contribs)
Jump to navigation Jump to search

This HOWTO really saved me. The only notes I have to add is concerning the mysql db's.

The mysql db's are kept in: /var/lib/mysql

Stop the mysql service:

 service mysqld stop

Change directories to the old mysql:

cd /mnt/old/var/lib/

Copy the mysql db's to the new install:

cp -R ./mysql /var/lib/

Change directories to the new mysql:

 cd /var/lib/

Change the ownership on the new install mysql directory:

 chown -R mysql:mysql ./mysql

Restart the mysqld service:

 service mysqld start

Looks like you are trying to recover your mysql database in the situation that you were not able to run pre-backup. Perhaps you would like to add a section within this wiki identifying the situation in which this is relevant. It obviously should not be the general case for this procedure; only if you are in a recovery situation where pre-backup is not option. --Christian 15:01, 25 December 2008 (UTC)