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.

Restore Backup MySQL .idb .frm Files

Discussion in 'Database Discussions' started by zlesavich, Nov 19, 2014.

  1. zlesavich

    zlesavich Member

    Joined:
    Aug 11, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I recently extracted the MySQL backup files for all existing databases from a cPanel backup. What is the procedure to restore those to a new server? They're a bunch of folders with .idb and .frm files.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It looks like you restored an entire MySQL directory based on the information you have provided. It's a better idea to restore the accounts with databases included so that database ownership is properly assigned during the account restore.

    Thank you.
     
  3. zlesavich

    zlesavich Member

    Joined:
    Aug 11, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    That's an interesting thought... but I didn't do that at all. I THOUGHT the database backups would stay within the tar file of each individual account but they were just dumped in the system files backup. Very inconvenient. I'm asking how do I restore this folder of files now without disrupting the rest of the services that use MySQL?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To clarify, in "WHM Home » Backup » Backup Configuration", please let us know which of the following options you selected:

    Per Account Only
    Entire MySQL Directory
    Per Account and Entire MySQL Directory


    Thank you.
     
Loading...

Share This Page