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!

Oops! Deleted databases!

Discussion in 'Database Discussion' started by beehave, Dec 7, 2012.

  1. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    I accidentally deleted half of the databases on my server including the mysql folder. I wrote a script to restore the files but still get connection error. How can I fix this without running restore backup for each account in whm? PLease help asap! Thanks in advance!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,353
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are backups enabled on the server? Is this option selected in your backup configuration?

    Per Account and Entire MySQL Directory
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    Backups are enabled. Per account only was selected. Bad huh?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,353
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeap. :(

    I'm sorry I don't have a better answer for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    So , I have to go through each account and restore via whm? Thanks for your help!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    One more question. I am having to do this because the "/var/lib/mysql/mysql" folder was deleted, correct?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,353
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should probably open a ticket to cPanel Support and speak with a Technical Specialist on this, beehave.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    On The Road
    cPanel Access Level:
    Root Administrator
    Unfortunately you are correct beehave. The mysql data directory is /var/lib/mysql, so deleting this directory will result in mysql losing it's database data.
     
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