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!

Correct way fix system after database folder deletion

Discussion in 'Database Discussion' started by Rakaris Bakaris, Feb 12, 2017.

Tags:
  1. Rakaris Bakaris

    Rakaris Bakaris Well-Known Member

    Joined:
    Jan 8, 2015
    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello!
    Some time ago we have deleted database folder '/var/lib/mysql/db'. The disk was full and this was fastest solution to make free space on disk. We have no backup for the deleted database. After some time the following error was generated on '/var/log/mqsqlhost.err':
    After searching with grep we have determined that 'ibdata1' file contains reference for the database.
    The question: What is correct way to clear entries about deleted database? Recreate and delete the database from WHM / comandline?
    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,643
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can try recreating, then deleting, the database via the cPanel interface of the account. You may also find this thread helpful:

    InnoDB Corruption Repair Guide

    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