Changes

From SME Server
Jump to navigationJump to search
925 bytes removed ,  19:49, 22 February 2013
m
Remove actioned discussion
Line 1: Line 1: −
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. --[[User:Christian|Christian]] 15:01, 25 December 2008 (UTC)
 

Navigation menu