Home » Performance » MySQL » Data size
Data size [message #97] Tue, 22 August 2006 23:10 Go to next message
mysqlmagyar
Messages: 4
Registered: August 2006
Junior Member
Hello,

I was wondering how to determine the total size of the data contained in tables (tables + indices).
I am using only InnoDB tables and my /etc/my.cnf contains the following relevant items:

innodb_data_file_path = ibdata1:1700M;ibdata2:10M:autoextend

Now in my mysql data directory
1.7G Aug 22 20:05 mysql-home/data/ibdata1

Obviously this file was created upon starting mysql for the first time, irrespective of the data (which I'm sure is smaller than 1.7G)

I want to know what part of ibdata1 is "in use".
Kind of basic question I know, and I can guess that somewhere the answer is in SHOW INNODB STATUS, but I couldn't find it in the documentation or deduce it myself.

Thanks.

P.S. just curious, what HTML editor are you using in this site?
Pretty cool.
Re: Data size [message #101 is a reply to message #97 ] Wed, 23 August 2006 10:57 Go to previous messageGo to next message
Peter  is currently offline Peter
Messages: 405
Registered: August 2006
Senior Member
Super Guru
Run SHOW TABLE STATUS, in the Comment field there will be the message saying how much space is free in Innodb tablespace, so you can compute how much is busy.

From the same statement output you can see sizes for data and index for individual tables adding these up is yet another way.

This site use FUDForum, I'm not sure what you mean by HTML editor.


Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
Re: Data size [message #105 is a reply to message #101 ] Wed, 23 August 2006 12:24 Go to previous messageGo to next message
mysqlmagyar
Messages: 4
Registered: August 2006
Junior Member
Yes, SHOW TABLE STATUS is just what I need.


Thanks.

BTW The HTML Editor is the gui "control" that you type the posts in (with the Bold, Italic, et al buttons). There are a variety out there, I just hadn't seen one exactly like this.
Re: Data size [message #110 is a reply to message #105 ] Thu, 24 August 2006 07:11 Go to previous message
Peter  is currently offline Peter
Messages: 405
Registered: August 2006
Senior Member
Super Guru
I have no idea. The one which is build into FUDForum.


Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
Previous Topic:slow_launch_threads
Next Topic:What happen with MySQL 5?
Goto Forum:
  



Current Time: Fri Jan 9 01:19:14 EST 2009

Total time taken to generate the page: 0.15153 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge