How would i go about transferring my Magento store from Godaddy to Digital ocean?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
In order to get your Magento store moved between hosts, you first need to backup your database using a command like:
mysqldump -h HOST -u USER -p DATABASENAME > FILENAME.sql
Then, tar archive your the files in your Magento directory with:
tar -czif ARCHIVENAME.tar.gz
Download this archive locally, then upload it to your DigitalOcean server, and unarchive
tar -xzif ARCHIVENAME.tar.gz
Next adjust your settings in the
app/etc/local.xml
file to match your new serverThe section of the file you’ll be adjusting looks like
Upload your MySQL backup to the new server, and then restore it with this command:
mysql -h HOST -u USER -p DATABASENAME < FILENAME.sql
The last step is to clear your Magento cache. Use Magento admin panel > System > Cache management or delete the contents of the
var/cache
andvar/session
folders in your Magento directory.