RobLoach / drush-docker

:whale: Docker Container to run Drush
http://registry.hub.docker.com/u/drush/drush
Other
19 stars 19 forks source link

Container lacks MySQL client and PDO extension #4

Closed socketwench closed 8 years ago

socketwench commented 9 years ago

Currently you cannot execute cr all or sql-client on on the container. Instead, you get the following error:

Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php on line 119
Drush command terminated abnormally due to an unrecoverable error.                                                                                                         [error]
Error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 119
socketwench commented 9 years ago

Apparently the solution is to add the following line to the Dockerfile:

RUN docker-php-ext-install mysql mysqli pdo pdo_mysql
and1truong commented 9 years ago

Duplicate to https://github.com/RobLoach/drush-docker/pull/3, not sure why @RobLoach doesn't merge it.

RobLoach commented 9 years ago

Thanks for the ping, @andytruong .

mparker17 commented 8 years ago

3 is merged; I think this is done now? I can certainly run drush sql* commands now. But I don't have permission to close this issue.

RobLoach commented 8 years ago

@mparker17 I couldn't get Drush 6 to run, in any context. Also removed the minor versions, just left the major specificity. Think we need them?

RobLoach commented 8 years ago

Worked!