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.
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
Thanks, @Philip Hodder!
Issue was that my deployment script overwrites the db values.
There is a separate discussion for this: https://community.atlassian.com/t5/Bitbucket-questions/Composer-install-does-not-install-update-package/qaq-p/767189?utm_source=atlcomm&utm_medium=email&utm_campaign=mentions_answer&utm_content=topic#U767502
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.