Support » Plugin: WordPress Backup and Migrate Plugin - Backup Guard » Error establishing a database connection

  • Resolved gotravelfaroften

    (@gotravelfaroften)


    So, I backed up my site before I majorly messed something up.

    Went to my host provider and great, they reset my wordpress!
    Fantastic, I literally backed my website 5 min before this.. I clicked restore and the site broke.

    This shows up on my website : Error establishing a database connection.

    When I go to the /wp domain it says :

    One or more database tables are unavailable. The database may need to be repaired. To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.

    define(‘WP_ALLOW_REPAIR’, true);

    Please help, thanks.

    https://wordpress.org/plugins/backup/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I got this too, after I am restore backup from one week ago.

    I tired repair the database, but no luck.

    The idwxwp_users table is okay.
    
    The idwxwp_usermeta table is okay.
    
    The idwxwp_posts table is okay.
    
    The idwxwp_comments table is okay.
    
    The idwxwp_links table is okay.
    
    The idwxwp_options table is okay.
    
    The idwxwp_postmeta table is okay.
    
    The idwxwp_terms table is okay.
    
    The idwxwp_term_taxonomy table is okay.
    
    The idwxwp_term_relationships table is okay.
    
    The idwxwp_termmeta table is okay.
    
    The idwxwp_commentmeta table is okay.

    Any one can help me to solve this?

    Plugin Author Backup Guard

    (@backupguard)

    We’ve already answered your ticket, could you please check it out?

    Thanks,
    Backup Guard

    I had the same problem,

    i also got after a restore from backup an error: Error establishing a database connection

    i checked the database with phpmyadmin under the database for wordpress and then wp_options. And there was no sign of something called siteurl

    So i pressed insert -> option_id = 1
    Option_name = siteurl
    Option_value = http://www.websitename.com

    and added it. Then went back to the website http://www.websitename.com/wp-admin and i could restore it

    hopefully it helps.

    Greetz J

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.