I have a Shopify app that is being hosted on Heroku. However when attemtping to access the build I am getting a Server 500 error. Running heroku logs –tails shows could not find driver (SQL: select * from information_schema.tables where table_schema = ? and table_name = migrations and table_type = 'BASE TABLE')
.
Thanks for any help.
(I am working on a mac using laravel and php8.0 with a mysql db connection)
-
I have run brew install mysql but this did not change the outcome.
-
In my composer.json I have these following requirements.
"php": "^8.0",
...(others)
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"ext-pdo_pgsql": "*"
},```
3) I went to my php.ini files and uncommented this line: ```extension=pdo_mysql``` but doing this results in composer install to fail with this error: ```PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql'``` and it states a bunch of paths it tried to find it in. So I have undone that change.
4) ```php artisan migrate``` responds with nothing to migrate.
5) The .env file appears to be correct
6) Switching my hosting links on the shopify partners and running ```npm run dev``` results in a successful **local** hosting which verifies the code works as intended. However Heroku hosting still has the 500 error.