1
Sedoras
Checking if InnoDB is supported?
  • 2007/1/7 14:38

  • Sedoras

  • Just popping in

  • Posts: 5

  • Since: 2006/6/10


Hello,

for a module i'm developing, i'd like to use InnoDB Tables (Transaction Support is the main reason).
Writing the Module is not the issue, but the SQL Scripts obviously contain the "ENGINE = InnoDB" statement that will fail if you run an older MySQL without InnoDB Support.

What would be a good way to check whether the DB Server supports InnoDB and gracefully exit if not? (This check should happen upon installation of the module)

2
christian
Re: Checking if InnoDB is supported?
  • 2007/1/7 15:17

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


The Xoops Info module retrieve informations from php.ini.

Look this code and adapt this for verify if innodb is supported.

3
banned
Re: Checking if InnoDB is supported?
  • 2007/1/7 17:18

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


with a simple query..

SHOW VARIABLES LIKE '%have_innodb%';

Login

Who's Online

262 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 262


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits