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!

how to check inactive databases on sever

Discussion in 'Workarounds and Optimization' started by ullalla, Aug 4, 2010.

  1. ullalla

    ullalla Well-Known Member

    Joined:
    Jan 20, 2006
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    166
    How we would come to know exact which databases are inactive at /var/lib/mysql?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I suppose the date on the database itself in /var/lib/mysql/ would let you know this. There is no tool in cPanel that I'm aware of to check inactive databases, only inactive active accounts. (via WHM > Account Functions > Show Active and Inactive accounts.)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    you could also parse the mysql log to see which databases have had conections or which users in mysql table have connected.
     
    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