drupalqa
drupalqa copied to clipboard
Undefined constant PDO::MYSQL_ATTR_SSL_CA in Drush\Sql\SqlMysql->creds()
Hi Hussain
We started using DrupalQA in our pipeline. We are using with Acquia/blt and MariaDB. On version with php8.2, we are getting error on bit setup
Undefined constant PDO::MYSQL_ATTR_SSL_CA in Drush\Sql\SqlMysql->creds() (line 103 of /opt/atlassian/pipelines/agent/build/vendor/drush/drush/src/Sql/SqlMysql.php).
[warning] Drush command terminated abnormally.
Thanks, @sharique. It's not clear if this error is from your project files or from DrupalQA itself. From the path, it seems that this is from your project files. Moreover, since DrupalQA is a Docker image that runs outside your project, it can't interfere with things like blt setup
. Of course, all this depends on how you have configured it.
If you still think this is because of DrupalQA, can you reproduce this problem in an open repository so that I can check? Thanks.
I'm still trying to figure out from where it is coming from. After checking PDO::MYSQL_ATTR_SSL_CA on this page https://www.php.net/manual/en/ref.pdo-mysql.php, it seems PHP configuration issue. I'll let you know if I found a fix for this.