List Info

Thread: MDB2 MySQL InnoDB & Transactions




MDB2 MySQL InnoDB & Transactions
user name
2006-04-21 12:57:01
Hi,

a stupid beginner question?: How do I configure MDB2 to be
able to use
transations with MySQL (using InnoDB)?


$config = array(
  'default_table_type' => 'INNODB'
);

$dbc = MDB2::singleton($mydsn, $config);


That's it ???

Will MDB2_Schema create all tables using InnoDB with that
configuration?

Is it possible to mix 'table drivers' using MDB2_Schema? I
guess no? :-(


Ok.. Thanks for any info!

Regards,
Matthias

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

MDB2 MySQL InnoDB & Transactions
user name
2006-04-22 13:32:02
Matthias Nothhaft wrote:
> Hi,
> 
> a stupid beginner question?: How do I configure MDB2 to
be able to use
> transations with MySQL (using InnoDB)?
> 
> 
> $config = array(
>   'default_table_type' => 'INNODB'
> );
> 
> $dbc = MDB2::singleton($mydsn, $config);
> 
> 
> That's it ???

yes

> Will MDB2_Schema create all tables using InnoDB with
that configuration?

yes

> Is it possible to mix 'table drivers' using
MDB2_Schema? I guess no? :-(

mysqldump .. replace s/MyISAM/InnoDB and reimport is the
easiest way

regards,
Lukas

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )