Changing the database settings

With the web site and database uploaded, we now need to update the settings file in our Drupal installation to point to the database on the hosting account. The database connection details are located in the settings.php file (in the sites/default folder). We need to download this file, and open it with a text editor (or a PHP editor such as the Crimson editor).

Within this file, we need to find the line starting with $db_url, and update this line to contain the database name, username, and password that we set up in our hosting account. This needs to be in the following format: mysqli://database_user: [email protected]/database_name.

Once we have updated this, we need to re-upload the file, and our web site is now accessible via the Internet!

0 0

Post a comment