Using a different driver

Permalink
I see that the mysql driver is used by default but I would rather use the pdo_mysql driver because it supports prepared statements. How would I do this? I see the constant is set in concrete/config/base.php. I assume I could override this file but I would rather not since it includes many other things which I do not want to change and I do not know how these settings might change when upgrading to future versions of concrete.

Also, I see that DB_TYPE is used in a few places and want to be sure that changing this will not break anything else.

 
Mnkras replied on at Permalink Reply
Mnkras
as long as there is a driver for it in ADODB then you should be fine.
Steff replied on at Permalink Reply
Steff
I have a project here where I need MYSQL Transactions. I have defined DB_TYPE to mysqlt. As far as I can see, it works without any problems.

Just added:
define('DB_TYPE', 'mysqlt');

to the site.php
Mainio replied on at Permalink Reply
Mainio
If you need mysql pdo, the correct driver in adodb is pdo_mysql, so you should add this to config/site.php:

define('DB_TYPE', 'pdo_mysql');



Antti