• I recently finished a new website I created for a client in a sub folder of their current site. I used this video as instructions for moving the new website from the sub folder to the public_html folder in order to make the site live.

    But it didn’t work!!! When I refreshed the site’s main url, the new site appeared like normal and I thought everything had worked. But when I tried to go to any page or link on the site it gave me an error and said it couldn’t be found.

    Next, I decided to put the old site back up and move the new one back into the sub folder where it was. So I reversed my steps I had taken in the video. When I did that, their old site was back up just fine, but the site I created was completely gone!! Nothing shows except a message saying “Error establishing a database connection.”

    I’m freaking out and I don’t know what to do. I’ve checked the sql database file and it says all the links are pointing to the sub domain which is were my site is. But somehow it’s not connecting.

    Is there anything anyone can do to help?!?

Viewing 1 replies (of 1 total)
  • Without viewing the video, here are accurate printed instructions for “Moving WordPress Within Your Site.”

    Don’t confuse “moving to root”, with “serving from root” (with wordpress in a sub-directory). Two very different things.

    “Error establishing a database connection.”

    That error usually means that something within the wp-config.php file is not correct. Make sure all of your files got moved back to the sub-directory, and if you altered your wp-config file in any way while attempting to move things, you need go back and make sure that all of the information required to connect to the database is accurate.

Viewing 1 replies (of 1 total)
  • The topic ‘Received "error establishing a database connection" in attempt to move site’ is closed to new replies.