#postgresql connection error in laravel

2 messages · Page 1 of 1 (latest)

strong coral
#

Hi everyone, I recently installed postgresql, but I'm having problems setting it up in laravel.

i have installed and set up postgresql on my linux server, but i can't get it to work in laravel, i got the error message “could not find driver” at the beginning, then i executed the command 'php install php8.3-pgsql' in linux and now i get this error message: “SQLSTATE[42P01]: Undefined table: 7 ERROR: relation “sessions” does not exist LINE 1: select * from “sessions” where “id” = $1 limit 1 ^”.

I would appreciate any help!

Translated with DeepL.com (free version)

timber tide
#

Well, the table doesn't exist, while your app is trying to query from it. So likely you'd need to run your migrations.