Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Conversation

finnlewis
Copy link
Contributor

which seems to be required by drush command line to prevent Error: Undefined class constant MYSQL_ATTR_SSL_CA

On a fresh install a couple of times recently, the first time I try to run drush I get the above error. A quick google and apt-get install php-mysql seems to fix it.

Not 100% clear why!

…revent Error: Undefined class constant MYSQL_ATTR_SSL_CA
@computerminds-jenkins
Copy link

Can one of the admins verify this patch?

@finnlewis
Copy link
Contributor Author

Hi @darthsteven !
Running drush on a fresh install raises questions about needing a few more php libraries. I see that on the command line I now have PHP 7.1.1-1+deb.sury.org~trusty+1 (cli) (built: Jan 20 2017 09:43:29) ( NTS )
When running drush for the first time, I get the error above, resolved by installing php-mysql ( which I think installs php7.1-mysql.

I then ran into an error when running a site install, which seemed to be caused by missing php curl library.

Again, installing the php-curl package installed the php7.1-curl package and all was fine again.

Do we simply need to add all the php7.1 versions of the packages we install to ensure they are available to drush?

Cheers,

Finn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants