php - Migrating drupal site from a Windows to a Linux machine -


I had to migrate a Diamond site from a machine running a XMPP package with a machine running Linux (Ubuntu 10.04) .

I exported the database to the source machine on a SQL file and used to recreate the database using the file on the destination machine. Also, I copied my website folder from source to destination. I also changed the hostname, user name and password in settings.php to reflect mysql credentials on the destination machine, but when I try to use the site, I receive the message 'Error connecting to mysql' Is received .

What could be wrong here?

I will start and install Drupal from scratch You can leave all your files alone, but sites Can get rid of default / settings.php So run the /install.php script so that you know that you are receiving the proper DB connection. When you come back to Square 1, try bringing your old db. It is a PITA, but it is a habit of transferring drip sites.

Try to install it on your Dev Site, it can be really useful in situations like you, run a backup, and then restore your steering site from scratch, install Backup_Maget and then reinstall from there. Please.


Comments