WordPress Multisite Shows ‘Error Establishing a Database Connection’ After Migration, But the Database Is Fine
Credentials correct, MySQL running, tables intact. The real cause was a domain mismatch in wp_site and wp_blogs that WordPress checks before it even tries to load…
Read article