You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the extension isn’t enabled, PDO::MYSQL_ATTR_INIT_COMMAND isn’t defined.
Simplest fix is probably to wrap that in an if (defined('PDO::MYSQL_ATTR_INIT_COMMAND')), but a much nicer fix would be to implement @tractorcow’s suggestion here: tractorcow#18
The text was updated successfully, but these errors were encountered:
In order to use
PDOConnector
you must enable thephp_pdo_mysql
extension - even if you’re not using a MySQL database:silverstripe-framework/src/ORM/Connect/PDOConnector.php
Lines 179 to 181 in db610aa
If the extension isn’t enabled,
PDO::MYSQL_ATTR_INIT_COMMAND
isn’t defined.Simplest fix is probably to wrap that in an
if (defined('PDO::MYSQL_ATTR_INIT_COMMAND'))
, but a much nicer fix would be to implement @tractorcow’s suggestion here: tractorcow#18The text was updated successfully, but these errors were encountered: