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 all databases question

Discussion in 'Database Discussions' started by Phat vo, Apr 1, 2017.

  1. Phat vo

    Phat vo Registered

    Joined:
    Apr 1, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    VN
    cPanel Access Level:
    Root Administrator
    Hello, my server was crashed with all file system were lost may be some important files of cpanel are lost too.

    I compressed my databases in /var/lib/mysql and how can i restore it?

    I used linode.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    We will provide you all steps for how to recover data from crashed disk.

    First please confirm that your disk is crashed and you have added new disk and installed cPanel on it ?
     
  3. Phat vo

    Phat vo Registered

    Joined:
    Apr 1, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    VN
    cPanel Access Level:
    Root Administrator
    I am not, i create new VPS and uploaded the back database (physical files)
    Then i tried to stop mysql then replace phycial files, then start mysql again. Unfortunately, it didnt work :(
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    Please let me know what exact error showing while restarting the MySQL service.
     
    #4 SysSachin, Apr 2, 2017
    Last edited: Apr 2, 2017
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You'd need to first re-create the cPanel accounts and their databases/database users. Once you do that, you can add the database users to the databases through cPanel, and then restore the contents of the database to the /var/lib/mysql/ directory from the backups you have.

    Thank you.
     
Loading...

Share This Page