Re: DBI/DBD::mysql: Detecting InnoDB?
- From: siracusa@xxxxxxxxxxxxxx (John Siracusa)
- Date: Sun, 13 Nov 2005 17:10:39 -0500
On 11/13/05 4:04 PM, Tyler MacDonald wrote:
> Is there a clean way to detect whether InnoDB support is available
> on the MySQL server? The best I've been able to come up with so far, is
> attempting to create a temporary table with the "TYPE=InnoDB" argument and
> testing to see if it fail
That won't work either. Some (all?) versions of MySQL will silently create
a MyISAM table instead. To find out what really happened, you have to try
to create an InnoDB table and then check the actual table type with a "SHOW
TABLE STATUS FROM ..." query afterwards. That's the only way I've found to
do it, anyway.
-John
.
- References:
- DBI/DBD::mysql: Detecting InnoDB?
- From: Tyler MacDonald
- DBI/DBD::mysql: Detecting InnoDB?
- Prev by Date: Re: DBI/DBD::mysql: Detecting InnoDB?
- Next by Date: Re: DBI/DBD::mysql: Detecting InnoDB?
- Previous by thread: Re: DBI/DBD::mysql: Detecting InnoDB?
- Next by thread: Re: DBI/DBD::mysql: Detecting InnoDB?
- Index(es):
Relevant Pages
|
|