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.
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](/files/avatars/781.jpg)
as long as there is a driver for it in ADODB then you should be fine.
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:
to the site.php
Just added:
define('DB_TYPE', 'mysqlt');
to the site.php
If you need mysql pdo, the correct driver in adodb is pdo_mysql, so you should add this to config/site.php:
Antti
define('DB_TYPE', 'pdo_mysql');
Antti