MySQL Forums
Forum List  »  Newbie

Re: How to find empty databases quickly
Posted by: Peter Brawley
Date: March 05, 2018 10:19AM

select table_schema, sum(data_length) Z
from information_schema.tables
where table_schema not in ('information_schema','performance_schema')
group by table_schema
having z=0;

Options: ReplyQuote


Subject
Written By
Posted
Re: How to find empty databases quickly
March 05, 2018 10:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.