PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
Illuminate\Database\QueryException
SQLSTATE[08006] [7] FATAL: role "root" does not exist (SQL: select * from information_schema.tables where table_catalog = task and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
at C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("SQLSTATE[08006] [7] FATAL: role "root" does not exist")
2 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("pgsql:host=127.0.0.1;dbname='task';port=5432;sslmode=prefer", "root", Object(SensitiveParameterValue), []
extension = php_pgsql
, перезапустил опен сервер, ошибка осталась APP.use('/profile', profileRoute);
я добавляю в server.js
extension=pdo_mysql
,extension=php_pdo_pgsql
,extension=pgsql
, root я поменял на postgres (как то не заметил), но ошибка все равно таже