Go Back   Forum Care Forums > Development Reference Area > MySQL Discussion

Reply
 
LinkBack Thread Tools Display Modes
disk usage of mysql db
Old
  (#1)
Jack Vamvas
Guest
 
Posts: n/a
Default disk usage of mysql db - 06-04-2007, 07:58 AM

I know that I can gauge the disk space usage of my tables with :

show table status;
and look at the Data_length column for each table, which is in bytes.

But does anyone know of another way to gauge the disk usage of MySQL dbs via
the prompt?


--

Jack Vamvas
___________________________________
Need an IT job? http://www.ITjobfeed.com




   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: disk usage of mysql db
Old
  (#2)
Peter H. Coffin
Guest
 
Posts: n/a
Default Re: disk usage of mysql db - 06-04-2007, 07:58 AM

On Fri, 18 May 2007 12:49:37 +0100, Jack Vamvas wrote:
> I know that I can gauge the disk space usage of my tables with :
>
> show table status;
> and look at the Data_length column for each table, which is in bytes.
>
> But does anyone know of another way to gauge the disk usage of MySQL dbs via
> the prompt?


du(1) from the appropriate directory.

--
"Every new technology carries with it an opportunity to invent a new
crime." --Laurence Urgenson (an ***istant chief US attorney),
speaking in 1987 about the first arrests for what was later called
cellphone cloning.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: disk usage of mysql db
Old
  (#3)
lark
Guest
 
Posts: n/a
Default Re: disk usage of mysql db - 06-04-2007, 07:58 AM

Peter H. Coffin wrote:
> On Fri, 18 May 2007 12:49:37 +0100, Jack Vamvas wrote:
>> I know that I can gauge the disk space usage of my tables with :
>>
>> show table status;
>> and look at the Data_length column for each table, which is in bytes.
>>
>> But does anyone know of another way to gauge the disk usage of MySQL dbs via
>> the prompt?

>
> du(1) from the appropriate directory.
>

a variation of du that has served me well:
du -h -d1
from the data directory.

--
lark -- EMAIL REMOVED
To reply to me directly, delete "despam".
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top