WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Database Connection Error (10 posts)

  1. Minnie000
    Member
    Posted 1 year ago #

    Hi all,
    So I successfully moved my wordpress site from one URL to the other on Hostgator. Then I had a blonde moment and deleted the previous site, which also deleted the database.
    I restored the database from a backup of the original site and made the changes to the URLs in the various locations, but am still getting the "can't connect to the database" error when I try to go to the site or login to the dashboard.
    Any help would be appreciated!
    Thanks!

  2. Have you updated your wp-config.php file? You'll want to make sure the database credentials match your new database.

  3. Minnie000
    Member
    Posted 1 year ago #

    Yep I've dupdated wp-config.php and can't seem to get it to work. Is there anything else I could be missing?

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Is this the site you are having problems with?
    http://www.laurabungarz.ca

  5. Minnie000
    Member
    Posted 1 year ago #

    Yep. I have a tried a couple of browsers. I get nothing in Firefox, probably just need to clear the cache. In IE I get the first page but the links don't work except the blog which is on a sub-domain and is separate.

  6. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Now it is showing 500 Internal Server Error.

    Can you deactivate all plugins and revert to Twenty Twelve theme? If you cannot do so from dashboard, use FTP or control panel.

  7. Minnie000
    Member
    Posted 1 year ago #

    I have deleted/removed all plugins and themes through the control panel. I've even replaced the .htaccess file with a blank one, to no avail.
    Any other suggestions?

  8. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Now: Error establishing a database connection

    Check your wp-config.php file and see if you have the correct database name, database username, database password and MySQL hostname.

  9. Minnie000
    Member
    Posted 1 year ago #

    Thank you krishna! You're awesome!
    I was able to get it working!

    Laura

  10. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Glad to note that you could solve the issue! :)

Topic Closed

This topic has been closed to new replies.

About this Topic