diff --git a/README b/README index 7202b2ef19436b787ec48e35099d9120ee21d07d..978eadc6e84ad9e1482d49194603fa8e00959b3b 100644 --- a/README +++ b/README @@ -49,6 +49,25 @@ when importing full_dump.sql, you must modify certain rows in the tables elggdat that they pertain to the local elgg site instance. (so if you see something like http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!) +******* +** Notes on importing data for dev to local machine: +******* +-ftp a copy of the database to your machine + scp unl_social_2010-04-22_00h10m.Thursday.sql usernameonlocalmachine@yourmachine.com:/Path/To/Transer/To +-import it + mysql -u username -p < /Path/To/unl_social_2010-04-22_00h10m.Thursday.sql +-Set the correct site url within the unl_social database: + mysql -u username -p + use unl_social; + UPDATE elggsites_entity SET url='http://ucommbieber.unl.edu/workspace/UNL_Elgg/elgg/' WHERE guid=1; + UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path'; + UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg_data/' WHERE name = 'dataroot'; +-zip up elgg_data and ftp that + zip -r newfilename elgg_data +-replace your local copy of elgg_data with this one and make sure apache (could be _www or apache or ?) has write access to it + cd path/to/elgg_data + sudo chown -R _www * + *******