Hi there ;)

What would be the process for moving a Drupal site to another hosting service?

Must I re-install drupal, install and enable all modules, and then import the backup?

Did i get it right? ;)

Comments

asak’s picture

Status: Active » Closed (fixed)

Allow me to answer myself:

Very simple.

1. Reinstall on the new server
2. Download and enable all modules and themes
3. Restore database

works like a charm... ;)

ronan’s picture

Sorry I didn't get to this answer before you did :)

You got it pretty much exactly right, however there is a short cut as long as you're moderately comfortable with MySQL and have access to either phpMyAdmin or the MYSQL command line client.

The backup files created by Backup and Migrate are valid MySQL dumps, so you should be able to import them directly using the import tab on phpMyAdmin or the source (\.) command in the mysql tool (you'll need to unzip the backup if you are using the command line tool, but most versions of phpMyAdmin will do that for you)

So the procedure becomes:
1) Copy the Drupal Install to the new sever
2) Restore the old DB with phpMyAdmin or mysql command line

This assumes that you have set up the db with the same credentials and uploaded the same settings.php file.

Hope this helps
R

ericcorriel’s picture

can you be more specific on what exactly is meant by This assumes that you have set up the db with the same credentials and uploaded the same settings.php file.

i'm trying to migrate from localhost --> productionServer.com and keep getting locked out (Access Denied) after the restore.

I'm not deselecting any tables, however, my database name is different, as is my database username and password. my database prefix (drupal_) is the same.

would these differences be the cause of my unsuccessful migration attempts?

ericcorriel’s picture

okay - you can answer if you like, but i solved my issue. Turned out that i had set my productionServer admin password to something different than my localhost admin password. once i realized that, after the restore, i needed to login to productionServer with localhost password, everything worked like a charm.

ronan’s picture

I'm glad it worked out

All the best
Ronan

roddy003’s picture

Should I install Drupal first on the production server as suggested in # or I simply can copy the Drupal install from my local server? If I install Drupal on the production server first, should the database name, user name and password be the same as on the local server?
Thanks,