Step 1: Export the database
First, export the current Drupal database to a file and download the file to your local computer.Step 2: Change the base URL in the database
After you have a file of the exported Drupal database, you are ready to make the changes to the base URL. To do this, follow these steps:- Using your preferred text editor, open the exported SQL file.
- Find all instances of the old URL, and replace them with the new URL.
- Save your changes to the exported SQL file.