Connecting Tech Pros Worldwide Help | Site Map

mysql overhead with innodb tables

  #1  
Old June 19th, 2009, 07:24 PM
ifedi's Avatar
Member
 
Join Date: Jan 2008
Location: Abuja, Nigeria.
Posts: 46
Hey guys,
I've a mysql database with about 112 tables and views. All of the tables are INNODB. I manage this with phpmyadmin, and stuff have been pretty much fine over the last one and a half years.
Suddenly I noticed this problem:
I needed to transfer the installation to another network server (running WinXP); I used the export feature in phpmyadmin to get out the table structure, and recreate them in the new database. This all happend well, and the eventual performance of queries is unhindered. Problem is, as soon as the tables had been created, even without any data, I noticed a rather high 'Overhead' figure (in red color) underneath each table where it says 'Space Usage'. The same figure (something like 5,012kb) was display as 'overhead' under ALL the tables. To confuse me further, on the main database page (showing all the tables in a list and with one of the columns titled 'Overhead'), there's nothing (only a dash) displayed as overhead on any of the table rows!
I've dropped and recreated everything several times with no success.
Kindly help out, anyone!
Regards,
Ifedi
  #2  
Old June 24th, 2009, 03:35 PM
Administrator
 
Join Date: Sep 2006
Posts: 12,084

re: mysql overhead with innodb tables


Does a mysqldump and restore show the same behavior?
  #3  
Old June 25th, 2009, 01:22 PM
ifedi's Avatar
Member
 
Join Date: Jan 2008
Location: Abuja, Nigeria.
Posts: 46

re: mysql overhead with innodb tables


Quote:
Originally Posted by r035198x View Post
Does a mysqldump and restore show the same behavior?
Yes.
As a matter of fact, just to investigate, I created a new database 'test2'. Creating a new INNODB table in test2 with a single column resulted in the same output (the same number of bytes of "overhead" as was in each of the other tables in the other databases). When I changed this new table to MyISAM, all seemed well.

All INNODB settings I are default.
  #4  
Old June 25th, 2009, 01:43 PM
Administrator
 
Join Date: Sep 2006
Posts: 12,084

re: mysql overhead with innodb tables


What happens if you run the OPTIMIZE TABLE query on the table?
  #5  
Old June 26th, 2009, 08:30 AM
ifedi's Avatar
Member
 
Join Date: Jan 2008
Location: Abuja, Nigeria.
Posts: 46

re: mysql overhead with innodb tables


Quote:
Originally Posted by r035198x View Post
What happens if you run the OPTIMIZE TABLE query on the table?
I'm not sure if I've quite done that. And right now I'm a couple of miles from my server machine... so I'll do that ASAP.
Anyhow, my reservations:
Should I really think I'd need to run OPTIMIZE TABLE on each of 112 tables to sort the problem out?
Why should a brand new table with with only one column and no data need OPTIMIZE?
It seems to me that something at a higher level is wrong with INNODB tables, or perhaps their interaction with the environment.
Thanks.
  #6  
Old June 26th, 2009, 10:29 AM
Administrator
 
Join Date: Sep 2006
Posts: 12,084

re: mysql overhead with innodb tables


Or perhaps even the setup of MySQL on that server itself.
OPTIMIZE should fix the issue but not real problem that may exist with your MySQL installation.
Perhaps check your system specs against requirements for INNODB or try backing up with the INNODB hot backup program if you have it.

r035198x(<----just guessing now
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
MyISAM engine: worst case scenario in case of crash (mysql, O/S,hardware, whatever) alf answers 110 December 9th, 2006 05:25 PM
Few questions on postgresql (dblink, 2pc, clustering) Jim Worke answers 2 November 23rd, 2005 01:46 AM
PHP MySQL WHY? smorrey@gmail.com answers 29 October 1st, 2005 09:55 PM
innodb vs myISAM? steve answers 5 July 23rd, 2005 08:04 AM