{"id":1513788,"date":"2010-05-27T00:18:07","date_gmt":"2010-05-27T00:18:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/database-error-after-changing-deleting-url-in-settings\/"},"modified":"2016-08-19T18:04:54","modified_gmt":"2016-08-19T18:04:54","slug":"database-error-after-changing-deleting-url-in-settings","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/database-error-after-changing-deleting-url-in-settings\/","title":{"rendered":"Database Error After Deleting URL in Settings"},"content":{"rendered":"<p>I have looked all over for this request in the forums. The requests I found made suggestions that did not work, though.<\/p>\n<p>Basically, my site was working fine. I was trying to delete the title of my blog from the top of the homepage. I thought I would be able to achieve this by deleting the Blog URL\/Home URL in the settings. As soon as I did that and updated, I was unable to access my page. I keep getting &#8211; &#8220;Error establishing a database connection&#8221;<\/p>\n<p>I tried repairing the wp_config.php file. It said everything was fine.<\/p>\n<p>Then I tried adding <\/p>\n<p>define(&#8216;WP_HOME&#8217;,&#8217;http:\/\/example.com&#8217;);<br \/>\ndefine(&#8216;WP_SITEURL&#8217;,&#8217;http:\/\/example.com&#8217;);<\/p>\n<p>to the wp_config.php file (with my URL replacing &#8220;example&#8221;)<\/p>\n<p>Then I tried adding<\/p>\n<p>update_option(&#8216;siteurl&#8217;,&#8217;http:\/\/example.com\/blog&#8217;);<br \/>\nupdate_option(&#8216;home&#8217;,&#8217;http:\/\/example.com\/blog&#8217;);<\/p>\n<p>to the functions.php file (with my URL replacing &#8220;example&#8221;)<\/p>\n<p>(those ideas were found here: https:\/\/codex.wordpress.org\/Changing_The_Site_URL)<\/p>\n<p>None of that worked. Any help would be appreciated. Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-1513788","topic","type-topic","status-closed","hentry","topic-tag-database-connection-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1513788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1513788\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1513788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}