The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restoring Database from Backup Problem

Discussion in 'Database Discussions' started by simon87, Aug 24, 2016.

Tags:
  1. simon87

    simon87 Registered

    Joined:
    Aug 24, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Hi, I recently had a problem with a database that got corrupted (it has InnoDB tables).

    I tried restoring a backup, didn't know that on my settings I had the option 'per account only'. By the way, I am getting desperate because I see only one table is being restored, missing the rest of the tables and posts (it is a Wordpress site). Any ideas how to fix this?

    Thank you so much for any help.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    322
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    May I know which backup you have configured on your server. I mean it's Incremental Backup or Compress Account Backups ?

    If it's Compress Backups then you have to extract the backup and restore database.
     
  3. simon87

    simon87 Registered

    Joined:
    Aug 24, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Hi SysSachin, thanks so much for your answer.

    It is a Compressed backup, I already did that, but for some reason the mysql file is just a 5kb dump with the structure of one table, it has no sense. Any ideas?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It's possible the InnoDB corruption prevented a successful backup of the database. Do you have any other backups available? If not, you may want to try repairing the InnoDB using the instructions in the following thread if the database still exists in it's corrupted state:

    InnoDB Corruption Repair Guide

    Thank you.
     
  5. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    One possibility is that before restoring that table, you have missed

    Code:
     mysql> SET FOREIGN_KEY_CHECKS=0;
    But if your backup is not complete, then there's no question of trying to restore it successfully.
     
Loading...

Share This Page