{"id":1990,"date":"2011-10-11T18:07:04","date_gmt":"2011-10-11T23:07:04","guid":{"rendered":"http:\/\/smilecitrus.info\/?p=1990"},"modified":"2011-10-11T18:08:49","modified_gmt":"2011-10-11T23:08:49","slug":"well-that-sure-made-me-feel-like-an-idiot","status":"publish","type":"post","link":"https:\/\/smilecitrus.info\/?p=1990","title":{"rendered":"Well that sure made me feel like an idiot"},"content":{"rendered":"<p>After my host finished moving me to a new server on Monday, I couldn&#8217;t figure out why WordPress wouldn&#8217;t connect to the database. Even though my host restored the site completely, including the database, I decided that, since I couldn&#8217;t figure out what was wrong, I would try restoring from my own backup instead. I knew my backups were good because I tested them locally. After some frustration it turned out that the thing I was doing wrong was that I had to write my cpanel username and an underscore before the mysql username. In other words, I had to write something like &#8220;cpaneluser_mysqluser&#8221; in wp-config.php whereas before I had always been just writing &#8220;mysqluser&#8221; and it worked. I suppose that&#8217;s good to know so I&#8217;m writing it down here in case I ever forget at some point in the future. As long as I&#8217;m making notes to myself though, I should also note that I must write &#8220;127.0.0.1&#8221; instead of &#8220;localhost&#8221;. That&#8217;s another thing I always forget. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>After my host finished moving me to a new server on Monday, I couldn&#8217;t figure out why WordPress wouldn&#8217;t connect to the database. Even though my host restored the site completely, including the database, I decided that, since I couldn&#8217;t &hellip; <a href=\"https:\/\/smilecitrus.info\/?p=1990\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[42],"_links":{"self":[{"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/posts\/1990"}],"collection":[{"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1990"}],"version-history":[{"count":4,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/posts\/1990\/revisions"}],"predecessor-version":[{"id":1994,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=\/wp\/v2\/posts\/1990\/revisions\/1994"}],"wp:attachment":[{"href":"https:\/\/smilecitrus.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smilecitrus.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}