{"id":785,"date":"2019-12-18T13:54:43","date_gmt":"2019-12-18T19:54:43","guid":{"rendered":"http:\/\/zewwy.ca\/?p=785"},"modified":"2020-03-23T09:28:40","modified_gmt":"2020-03-23T14:28:40","slug":"wordpress-error-establishing-a-connection-to-the-database","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2019\/12\/18\/wordpress-error-establishing-a-connection-to-the-database\/","title":{"rendered":"WordPress: Error Establishing a Connection to the Database"},"content":{"rendered":"<p>This will be a short one, as I didn&#8217;t take screen shots, and I didn&#8217;t have to do much to resolve it. Just wanted to make note of it.<\/p>\n<p>The other day I wanted to check my own site and instead of loading I got the message &#8220;Error Establishing a Connection to the Database&#8221;.<\/p>\n<p>I applied my usual fix first; reboot. While the VM was rebooting it appeared there had been some disk corruption? the automatic fsck failed stating a manual fsck was required.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/OyONyC3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/OyONyC3.png\" alt=\"\" width=\"721\" height=\"401\" \/><\/a><\/p>\n<p>so&#8230;<\/p>\n<p>fsck \/dev\/sda1<\/p>\n<p>and a bunch of &#8220;errors&#8221; and fix?&lt;y&gt;<\/p>\n<p>after a bunch of answering yes, it stated the disk was repaired successfully.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/AzRk5wI.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/AzRk5wI.png\" alt=\"\" width=\"715\" height=\"396\" \/><\/a><\/p>\n<p>after this I typed &#8220;exit&#8221; or &#8220;return&#8221;, and the system rebooted like normal. Lucky for me the WordPress site came up clean after that. However even had this had failed, we all have backups right?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will be a short one, as I didn&#8217;t take screen shots, and I didn&#8217;t have to do much to resolve it. Just wanted to make note of it. The other day I wanted to check my own site and instead of loading I got the message &#8220;Error Establishing a Connection to the Database&#8221;. I &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2019\/12\/18\/wordpress-error-establishing-a-connection-to-the-database\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress: Error Establishing a Connection to the Database&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8,223],"tags":[266,56],"class_list":["post-785","post","type-post","status-publish","format-standard","hentry","category-server-administration","category-wordpress","tag-error-database-connection","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":3,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}