Difference between revisions of "Talk:UpgradeDisk"

From SME Server
Jump to navigationJump to search
(New page: 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 di...)
 
Line 7: Line 7:
  
 
Change directories to the old mysql:
 
Change directories to the old mysql:
  cd /mnt/old/var/lib/mysql/
+
  cd /mnt/old/var/lib/
  
 
Copy the mysql db's to the new install:
 
Copy the mysql db's to the new install:

Revision as of 09:44, 24 December 2008

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