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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Correct way fix system after database folder deletion

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

Tags:
  1. Rakaris Bakaris

    Rakaris Bakaris Active Member

    Joined:
    Jan 8, 2015
    Messages:
    40
    Likes Received:
    1
    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:
    38,658
    Likes Received:
    1,425
    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.
     
Loading...

Share This Page