Unix Technical Forum

disk usage of mysql db

This is a discussion on disk usage of mysql db within the MySQL forums, part of the Database Server Software category; --> I know that I can gauge the disk space usage of my tables with : show table status; and ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:51 AM
Jack Vamvas
 
Posts: n/a
Default disk usage of mysql db

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
  #2 (permalink)  
Old 02-28-2008, 09:51 AM
Peter H. Coffin
 
Posts: n/a
Default Re: disk usage of mysql db

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 assistant 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
  #3 (permalink)  
Old 02-28-2008, 09:51 AM
lark
 
Posts: n/a
Default Re: disk usage of mysql db

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 -- hamzee@sbcdeglobalspam.net
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com