Drupal is a lightweight and flexible system, making the migration of a Drupal-based website relatively straightforward. Before migrating your website to a new hosting provider, it's important to ensure that the new host fully supports all Drupal functionalities. With MyDreams hosting, you can be confident that the hosting is fully compatible with Drupal.
1) Database Migration
Log in to phpMyAdmin on your current hosting provider. Click on the database name in the left column, then go to the Export tab in the top menu. Export the database to a file on your local disk.
Once the database file is saved on your disk, log in to phpMyAdmin on the new hosting provider. Click on the database name in the left column, then go to the Import tab in the top menu. Use the form to select the database file from your disk and import it.
2) File Migration via FTP
Using an FTP client, connect to the FTP server of your old hosting provider and download all Drupal files to your local PC. Next, connect to the FTP server of your new hosting provider and upload the files from your PC to the new hosting. For MyDreams hosting, place the files in the /web
directory.
3) Post-Migration Configuration
All Drupal configuration settings after migration are made in the /sites/default/settings.php
file. Update the following item:
$db_url = 'mysqli://md_4mydomain_cz:hesl0012@localhost/md_4mydomain_cz';
// Shortened connection string for the database. The format is "Login:Password@Host/Database"
This configuration specifies the database connection details, including the login credentials, password, host, and database name.