Moving drupal to a new host

mattdjs - November 14, 2008 - 20:36

I am running drupal 5.

I need to move my drupal installation to a new hosting provider so have copied all my files and have started uploading them to my new host. I have also copied all the MYSQL database from my old host and uploaded it to a new database on my new host.

Please could someone tell me the files i need to edit to set it up to work with the new database name and to totally work properly.

Thanks in advance.

Look for settings.php

GeraldMengisen - November 17, 2008 - 12:14

Inside settings.php (which resides in /your_drupal_dir/sites/default if memory serves me right), search for "localhost." That same line contains the name of the database, the database user and the password. That's all you have to update.
P.S.: settings.php is probably set read-only, so enable write access before editing, and set read-only access afterwards.

 
 

Drupal is a registered trademark of Dries Buytaert.