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.

MySQL Database Restoration from Full Backup

Discussion in 'Database Discussions' started by osirion, Jun 14, 2017.

  1. osirion

    osirion Active Member

    Joined:
    Jan 16, 2007
    Messages:
    35
    Likes Received:
    2
    Trophy Points:
    158
    Hi Guys,
    So I have a customer with a full backup. How do I go about (through WHM or CLI) restoring a specific database within the full backup to his account?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    177
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    A full backup means a .tar.gz file , you will have untar the file first >> locate the mysql database.sql file and restore that file to the database , you can get the commands from google so its an easy stuff
     
  3. osirion

    osirion Active Member

    Joined:
    Jan 16, 2007
    Messages:
    35
    Likes Received:
    2
    Trophy Points:
    158
    Thanks - this is what I ended up doing. Was hoping there was a quicker /easier way for future reference, but guess not.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to restore the database. There's no other method of obtaining the SQL file other than extracting it from the full backup archive unless you have a backup of the database itself.

    Thank you.
     
Loading...

Share This Page