I migrated to a new server. YAY! The only things that don't work are the wordpress sites. The databases appear to have migrated correctly; I can connect to phpmyadmin, look at the databases and tables and see that wp_users contains exactly what I would expect. Every time I browse to the sites, I get... "Error establishing a database connection" Any ideas on the cause? Pretty please?
mysql is running... ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled) Active: active (running) since Sat 2016-12-24 19:52:11 NZDT; 14h ago and the contents of wp-config is exactly what I would expect. I did the migrate of the sites by making a tarball of everything in /var/www/<domainname> and extracting it onto the new server in the same place and yes, I did check clientx/webx/ were the right directories. I migrated the databases by exporting/import the appropriate databases. I did find that I hadn't created mysql users for the sites so I did that and now I get a blank screen, closer, but no cigar. So I'm still stuck.
Are the db servers set to 'localhost' in wp-config.php Did a migration once and all the wp sites had the dns name of the old server instead of localhost and was getting the same error you are.
It's localhost. I tried installing a test wordpress on a spare subdomain on the server and that one works fine, so I know apache/php are working ok.
And when you go and run http://your-broke-wp-site.com/phpmyadmin and use the login/pw of the contents of the /wp-config.php and try to login with that login/pass and db name does it work or not?