Support » Plugin: UpdraftPlus WordPress Backup Plugin » Error establishing a database connection

  • Resolved larsgravesen

    (@larsgravesen)


    Hi after running a recovery I get this error Error establishing a database connection on the page and the admin. I really hope that the data is not ruined. Can anyone tell me how to fix this? I have tried adding “define(‘WP_ALLOW_REPAIR’, true);” to the wp-config.php and run the repair. The result is ok but I still get this error message on the pages. Please please can anyone help me.
    Thanks
    Lars

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you check your database connection credentials are correct?
    Specifically these lines:

    define(‘DB_NAME’, ‘some_db‘);
    define(‘DB_USER’, ‘some_username‘);
    define(‘DB_PASSWORD’, ‘some_pass‘);
    define(‘DB_HOST’, ‘localhost‘);

    This can be found in the “wp-config.php” file.

    Regards,
    Bryle

    HI Bryle thanks for your reply. It looks like the information is right in these lines. I really don’t know how to fix this.
    Lars

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you please send us a copy of the restoration log?
    You can find this log in the ‘wp-content/updraft’ directory of your site via FTP.
    Please use an online tool such as http://pastebin.com/ for the log and paste the link here.

    Best Wishes,
    Bryle

    HI Bryle,
    I see there are 3 files but this is the newest and biggest log

    https://pastebin.com/gJVzcXvE

    Thanks
    Lars

    Plugin Author David Anderson

    (@davidanderson)

    Unfortunately this database file is corrupt, and needs hand repair. (It’s not possible to say why it’s corrupt – there are various cases in which MySQL can have on-disk data that is invalid and can’t be restored, or it could be a UD issue).

    If you use this form – https://updraftplus.com/ask-a-pre-sales-question/ – (it says it’s pre-sales questions only, but everything submitted gets reviewed before being deleted if the person was having a laugh, so, add the URL for this topic and it’ll be fine) to send us your DB backup, someone will repair it for you and email it back to you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.