From the course: Build and Manage a WordPress Multisite

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Database issues

Database issues

- [Instructor] Now let's look at troubleshooting potential issues with the database for your multisite installation. As you may know, a WordPress website is made up of both website files and a database. With multisite installations, all the sites in the network need to have the same database content. As a result, the database is replicated and then synchronized whenever you add a new site. Sometimes this can go wrong and result in errors. You might find that one of the sites in your network greets you with an error like this one, "Site not found" or "Error establishing a database connection." This tells you immediately that something is wrong with the database. Open up your site's files using whatever code editor or file manager you prefer. I'm going to use the one here in my host, find the wp-config file. It'll be inside the public_html file, which is inside the root folder for your site. So I'll choose that, and open it up to edit it. Check the line items, DB_NAME, DB_USER, and…

Contents