Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MySQL Database Restoration from Full Backup

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

  1. osirion

    osirion Well-Known Member

    Joined:
    Jan 16, 2007
    Messages:
    50
    Likes Received:
    4
    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:
    267
    Likes Received:
    20
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. osirion

    osirion Well-Known Member

    Joined:
    Jan 16, 2007
    Messages:
    50
    Likes Received:
    4
    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:
    43,716
    Likes Received:
    1,794
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice