Hi all,

I have been trying out Drupal on my local machine and today, decided to put it up online, but my ISP adds a prefixes to the database name, and it has a different username to that on my local machine.

How can I change the database name on my local machine without breaking the local installation, I could then just copy the Drupal files to the remote location, and thereafter both local and remote installations will be in harmony.

Thanks.

Comments

hagrin’s picture

You probably just need to edit your sites/default/settings.php file and these lines in particular -

$db_url = 'mysql://username:password@sql_host/db_name';
$db_prefix = '';

_______________________________________________________________________________
http://www.hagrin.com - Just my little slice of the Interweb