Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Laravel deploy fails on migrate

Theodoros Moschos April 5, 2018

Hello everyone,

We are using Pipelines to deploy our Bitbucket code and currently making some adjustments in our deploy script.
I have followed the article here: https://confluence.atlassian.com/bitbucket/laravel-with-bitbucket-pipelines-913473967.html

but the message that I am getting is:

 php artisan migrate Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = forge and table_name = migrations) at /opt/atlassian/pipelines/agent/build/vendor/laravel/framework/src/Illuminate/Database/Connection.php: 664 660|
....
PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=forge", "forge", "", []) 

Before php artisan migrate I also run:

 eb setenv DB_HOST=hosthere DB_DATABASE=dbhere DB_USERNAME=userHere DB_PASSWORD=passHere


Any help would be highly appreciated.

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

Hi Theodoros,

Can you try run:

apt-get install -y php-mysql

when you download your dependencies. 

This looks related to the issue here: https://stackoverflow.com/questions/22463614/php-artisan-migrate-throwing-pdo-exception-could-not-find-driver-using-larav

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events