warpig's avatar
Level 12

Could not find driver

Hi everyone

I use visual studio code, wsl2(ubuntu22.04), docker, laravel 10, php8.2.7

When I do php artisan serve in console IDE I see this error:

select * from `posts` where `active` = 1 and `published_at` < 2023-12-02 16:22:45 order by `published_at` desc limit 3

I've tried: apt-get install php-mysql

it doesn't throw any error but if i check the modules it's not listed there. Please, who knows how to fix it? https://flareapp.io/share/dPbWrv47

0 likes
3 replies
warpig's avatar
Level 12

@jlrdw i tried doing it. it basically says to change the "db_host=db" add a volume at the end of the docker file, "laravel-database" and change the image to the latest like this: 'mysql:latest' but it still doesn't work. any ideas? i am trying to connect to this port http://127.0.0.1:8000/

Please or to participate in this conversation.