Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing mysql driver in docker_laravel cookbook docker image? #40

Open
nbcsteveb opened this issue Dec 15, 2017 · 1 comment
Open

Missing mysql driver in docker_laravel cookbook docker image? #40

nbcsteveb opened this issue Dec 15, 2017 · 1 comment

Comments

@nbcsteveb
Copy link

@crigor

Heads up, looks like your docker image is missing the MySQL PDO driver..

After booting an instance, if I try to GET / a laravel error Whoops, looks like something went wrong. appears, and dumps the following to logs.

PDOException: could not find driver in /usr/src/app/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55

I ran the following code to test for drivers:

<?php
foreach(PDO::getAvailableDrivers() as $driver)
    {
    echo $driver.'<br />';
    }

## output:
## pgsql

MySQL was not on the list.

Thanks a lot for excellent work on EY docker support, this some seriously cool and useful stuff! :)

@crigor
Copy link
Contributor

crigor commented Dec 20, 2017

Thanks @nbcsteveb. I'll take a look and update the docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants