Difference between revisions of "V5 migration"

From CoGepedia
Jump to: navigation, search
(Created page with 'There are significant changes to the database schema in this new version of the software. Existing databases must be migrated to v5 using the migration script. Here are the ste...')
 
Line 1: Line 1:
There are significant changes to the database schema in this new version of the software. Existing databases must be migrated to v5 using the migration script. Here are the steps:
+
There are significant changes to the database schema in this new version of the software. Existing databases must be migrated to v5 using the migration script. Here are the steps:  
  
1. Backup the current database
+
1. Backup the current database  
mysqlhotcopy --port=XXXX -u XXXXXX -p XXXXXX coge_db backup_dir
+
<pre>mysqlhotcopy --port=XXXX -u XXXXXX -p XXXXXX coge_db backup_dir </pre>
 +
2. Update the code <br>
 +
<pre>cd CoGeX ; svn update cd CoGe_web ; svn update cd /opt/apache/CoGe ; svn update </pre>
 +
3. Run the migration script on the database <br>
 +
<pre>perl CoGeX/scripts/migrate_coge5.pl -db=coge_db -u=XXXXXX -pw=XXXXXX </pre>
 +
The migration script takes ~2 minutes to run.
  
2. Update the code
+
4. Restart mysql  
cd CoGeX ; svn update
+
<pre>sudo service mysql restart </pre>
cd CoGe_web ; svn update
+
cd /opt/apache/CoGe ; svn update
+
 
+
3. Run the migration script on the database
+
perl CoGeX/scripts/migrate_coge5.pl -db=coge_db -u=XXXXXX -pw=XXXXXX
+
 
+
The migration script takes ~2 minutes to run.
+
 
+
4. Restart mysql
+
sudo service mysql restart
+

Revision as of 18:46, 17 September 2012

There are significant changes to the database schema in this new version of the software. Existing databases must be migrated to v5 using the migration script. Here are the steps:

1. Backup the current database

mysqlhotcopy --port=XXXX -u XXXXXX -p XXXXXX coge_db backup_dir 

2. Update the code

cd CoGeX ; svn update cd CoGe_web ; svn update cd /opt/apache/CoGe ; svn update 

3. Run the migration script on the database

perl CoGeX/scripts/migrate_coge5.pl -db=coge_db -u=XXXXXX -pw=XXXXXX 

The migration script takes ~2 minutes to run.

4. Restart mysql

sudo service mysql restart