実現したいこと
npx prisma db pushでエラーがでないようにしたい。
環境 WSL2 ubuntu24.04
psql (16.3 (Ubuntu 16.3-0ubuntu0.24.04.1)) Type "help" for help. postgres=# \list List of databases Name | Owner | Encoding | Locale Provider | Collate | Ctype | ICU Locale | ICU Rules | Access privileges ------------------+----------+----------+-----------------+---------+---------+------------+-----------+----------------------- blog_nextjs_crud | postgres | UTF8 | libc | C.UTF-8 | C.UTF-8 | | | postgres | postgres | UTF8 | libc | C.UTF-8 | C.UTF-8 | | | template0 | postgres | UTF8 | libc | C.UTF-8 | C.UTF-8 | | | =c/postgres + | | | | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | libc | C.UTF-8 | C.UTF-8 | | | =c/postgres + | | | | | | | | postgres=CTc/postgres (4 rows)
.envファイル
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/blog_nextjs_crud?schema=public"
発生している問題・分からないこと
https://fajarwz.com/blog/simple-full-stack-crud-with-nextjs-14-postgresql-and-prisma/
これ見てやっているのですが。
blog-nextjs-crud#npx prisma db push
Error: P1000: Authentication failed against database server at localhost
, the provided database credentials for postgres
are not valid.
Please make sure to provide valid database credentials for the database server at localhost
.
エラーメッセージ
error
1blog-nextjs-crud#npx prisma db push 2 3Error: P1000: Authentication failed against database server at `localhost`, the provided database credentials for `postgres` are not valid. 4 5Please make sure to provide valid database credentials for the database server at `localhost`.
該当のソースコード
特になし
試したこと・調べたこと
上記の詳細・結果
postgresqlの知識がとぼしく解決できなかった。
補足
特になし
0 コメント