Title: Yoast creating a database connection error
Last modified: March 5, 2021

---

# Yoast creating a database connection error

 *  Resolved [thetravelgal](https://wordpress.org/support/users/thetravelgal/)
 * (@thetravelgal)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/yoast-creating-a-database-connection-error/)
 * Just updated Yoast and now every time I go to view a post while logged in as 
   an admin and opening a page from the admin panel or edit screen, I get “Error
   establishing a database connection”
 * When I refresh the page, the post comes right up. But it is doing this for EVERY
   SINGLE POST/PAGE I open while logged in.
 * It doesn’t do this if I’m not logged in, nor could my host get it to do this.
   Nor could my host identify an error on their end related to this.
 * I believe the problem is Yoast because the problem goes away as soon as I disable
   Yoast and returns as soon as I reactivate it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fyoast-creating-a-database-connection-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/yoast-creating-a-database-connection-error/#post-14141188)
 * [@thetravelgal](https://wordpress.org/support/users/thetravelgal/) We’re sorry
   to hear you are experiencing this issue on your site.
 * In my past experience I’ve found that semi-sporadic issues with receiving **‘
   Error establishing a database connection’** are most commonly caused by two things:
    -  1) If the database or MySQL on the server are under significant strain so
      having trouble allocating the resources for whatever the database request 
      was.
       2) Crashed tables in the database. This can be caused by a number of
      issues/plugins, but essentially results in tables not being closed or written
      to correctly.
 * In this case since you said it seems related to Yoast SEO so I would doubt that
   it was the first possible cause I listed above. If this is due to crashed tables,
   a simple database check/repair will typically fix the problem. Normally there
   is a feature to do this from the database area of a host’s control panel area.
   If it isn’t, it can certainly be requested from your hosting provider.
 * If a check/repair doesn’t correct the issue, we’d next recommend you to try the
   following steps?:
    -  **1.** Install & activate the [Yoast Test Helper plugin](https://wordpress.org/plugins/yoast-test-helper/)
      **
      2.** Go to Tools -> Yoast Test **3.** Hit the “Reset Indexables & Migrations”
      button **4.** Under SEO → Tools, click the “Start SEO Data Optimization” button.
 *  Thread Starter [thetravelgal](https://wordpress.org/support/users/thetravelgal/)
 * (@thetravelgal)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/yoast-creating-a-database-connection-error/#post-14141367)
 * I think I was too quick to blame Yoast. It was Yoast, but I think Yoast wasn’t
   working because of a REST API issue caused by WP External links. So not Yoast’s
   fault. I’m still testing now that I deleted that plug-in. And I will follow up
   and check the database. I haven’t done that for awhile anyway. Thanks for the
   quick response.
 * You can consider this closed. If it still occurs, I’ll have to dive in deeper.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/yoast-creating-a-database-connection-error/#post-14141550)
 * [@thetravelgal](https://wordpress.org/support/users/thetravelgal/) Thanks for
   confirming you were able to resolve the issue by removign the WP External Links
   plugin. We are going ahead and marking this issue as resolved but please let 
   us know if you require any further assistance.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Yoast creating a database connection error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [database connection](https://wordpress.org/support/topic-tag/database-connection/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 3 replies
 * 2 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/yoast-creating-a-database-connection-error/#post-14141550)
 * Status: resolved