Koozali.org: home of the SME Server

InnoDB on SME 7.3

Offline JJSH

  • *
  • 18
  • +0/-0
InnoDB on SME 7.3
« on: March 11, 2009, 05:40:56 PM »
I would like to enable InnoDB on MySQL, for an application I want to install. Are there any dangers known in this (I'll back up first, just in case).

Also, do I need to do anything other than;
Code: [Select]
config setprop mysqld InnoDB enabled
such as a reboot, etc?

Many TIA

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: InnoDB on SME 7.3
« Reply #1 on: March 11, 2009, 05:54:16 PM »
hi

read here.. :-)

HTH
ciao
Stefano

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: InnoDB on SME 7.3
« Reply #2 on: March 11, 2009, 06:33:46 PM »
I would like to enable InnoDB on MySQL, for an application I want to install. Are there any dangers known in this (I'll back up first, just in case).
One of the dangers of InnoDB compared to MyISAM in MySQL is that InnoDB tables and databases take up space for information storage which they never give back to the operating system, as this is the way InnoDB was designed. The only way to restore this space is with some manual fiddling provided you setup allows you (see below).
A possible way to limit this is to assign a separate InnoDB file per table instead of per database as is done per default by MySQL. I suggest you read-up on MySQL InnoDB in their manual.

So the possible caveat here is that even when you delete records from tables this free space will not be returned to the operating system and hence will not be available to other processes on the system and MySQL will 'eat' more and more of your hard drive.

Offcourse there are benefits to InnoDB as well. Are you sure you really need InnoDB?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline JJSH

  • *
  • 18
  • +0/-0
Re: InnoDB on SME 7.3
« Reply #3 on: March 17, 2009, 10:50:22 AM »
Thanks for the advice guys ~ it prompted me to work out why the migration script wouldn't allow myISAM, and have resolved this and have the application happily running on SME using MYISAM with no drama.

Thanks again.  :smile: