WordPress Multisite "Error establishing a database connection"
You are sure you entered right database name, database user and server but still show error "Error establishing a database connection" on the front, what the reason ? If you met that in a multisite WordPress installation then it may caused by wrong domain name setting in you database.
- Go to the dabhoboard such as http://localhost/wordpress-401-mu/wp-admin you will see the following screen.
As the screen printed it cannot find out the site localhost/wordpress-401-mu/ in your database table mur_blogs ( if you use default database prefix then it is wp_blogs ).
Follow the instruction and open you database with phpmyadmin( or other database management tool ), and open the table mur_blogs ( default wp_blogs ). Plase change the domain & path to correct as the follow.
- Because you use localhost as the domain in you XAMPP, so domain always should be localhost, and the primary site may be localhost/your-directory-name/sub_site/
Posted from my blog with SteemPress : https://waytowp.com/wordpress-multisite-error-establishing-database-connection/
Leave WordPress Multisite "Error establishing a database connection" to:
Read more #utopian-io posts
Best Posts From ascending.taurus
We have not curated any of ascending.taurus's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From ascending.taurus
- How to fix cURL error (77) when do Wordpress update
- How to fix 500 Internal Server Error
- How to remove duplicate records in mysql
- How to renew your free SSL Certificate for you Godaddy hosting
- Install free SSL Certificate for you Godaddy hosting
- WordPress Multisite "Error establishing a database connection"
- Move a multisite WordPress to your local XAMPP
- What do you call it? / 你们把这个叫什么
- Install Free SSL Certificate to Wordpress on Plesk
- About me