Re: DBI/DBD::mysql: Detecting InnoDB?



Hi.

13Nov2005 @ 13:04 Tyler MacDonald thusly spake
> Hello,
>
> I'm working on a database package right now that will support
> multiple backend drivers (currently just DBD::Pg and DBD::mysql, possibly
> more in the future). With MySQL, you can only support transactions and
> foreign keys if you have enabled the InnoDB database backend. This would
> undoubtedly mean that you would want to use a different database schema
> depending on whether InnoDB is available.
>
> 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

You could try the 'mysqladmin -u <user> -p<passw> -V'
If your version of mysql is later than 3.23.6 it will support InnoDB.

Also the command from the mysql prompt.
mysql> 'show table status;'
shows table types.

hth.
Kind regards.
Luke

> testing to see if it fails, but if there is just some flag I can query the
> database with I would much rather use that.
>
> Thanks in advance,
> Tyler
>

--
.............._..
..| .| |.|/.|_ .
..|__.|_|.|\.|_ .
:61 421 276 282:
.



Relevant Pages

  • Re: [PATCH 00/23] per device dirty throttling -v8
    ... to reproduce the problem with a test program or a mysql driver. ... 146GB SCSI disk that are mirrored in a RAID 1 array on which the system ... on a RAID 10 array which contains the database files and database ... to use exclusively InnoDB. ...
    (Linux-Kernel)
  • Re: myqsl dummy needs help
    ... I think original setup for mysql is for root user via local socket and ... 090216 13:30:45 mysqld started ... InnoDB: a new database to be created! ... InnoDB: Database physically writes the file full: wait... ...
    (Fedora)
  • Re: myqsl dummy needs help
    ... MySQL does this. ... user that user is totally separate from the OS root account. ... InnoDB: a new database to be created! ... InnoDB: Database physically writes the file full: wait... ...
    (Fedora)
  • Re: Help starting mysql.
    ... Subject: Help starting mysql. ... 081028 14:41:25 mysqld started ... InnoDB: a new database to be created! ... InnoDB: Database physically writes the file full: wait... ...
    (Fedora)
  • Re: Created on Access 2003, but.......................
    ... database," as MySQL is not even close, even with InnoDB tables. ... then even after migration to another database engine it ...
    (comp.databases.ms-access)