• Resolved Minnie000

    (@minnie000)


    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!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Have you updated your wp-config.php file? You’ll want to make sure the database credentials match your new database.

    Thread Starter Minnie000

    (@minnie000)

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

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

    Thread Starter Minnie000

    (@minnie000)

    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.

    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.

    Thread Starter Minnie000

    (@minnie000)

    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?

    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.

    Thread Starter Minnie000

    (@minnie000)

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

    Laura

    Glad to note that you could solve the issue! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Database Connection Error’ is closed to new replies.