Replace special characters with percent-encodings

Make sure that in your DATABASE_URL in the .env file, the special characters in your username and password are replaced with percent-encodings.

For example, in your database URL, if your username or password contains @ character, it should be replaced with its equivalent percent-encoding, that is %40. For # it is %23 and so on. See the list below.

Percent-encodings

Following are the percent-encodings for the frequently used special characters:

Special Character Percent Encoding
! %21
# %23
$ %24
% %25
& %26
' %27
( %28
) %29
* %2A
+ %2B
, %2C
/ %2F
: %3A
; %3B
= %3D
? %3F
@ %40
[ %5B
] %5D
newline %0A or %0D or %0D%0A
space %20
" %22
% %25
- %2D
. %2E
< %3C
> %3E
\ %5C
^ %5E
_ %5F
` %60
{ %7B
| %7C
} %7D
~ %7E
ยฃ %C2%A3
ๅ†† %E5%86%86
Answer from Yogesh Umesh Vaity on Stack Overflow
๐ŸŒ
Prisma
prisma.io โ€บ postgres
Prisma Postgres | Serverless PostgreSQL with Instant Setup
Create a serverless PostgreSQL database in seconds with built-in connection pooling, global availability, automated backups, and usage-based pricing.
๐ŸŒ
Prisma
prisma.io โ€บ home โ€บ postgresql โ€บ postgresql โ€บ postgresql โ€บ postgresql
PostgreSQL database connector | Prisma Documentation
Prisma ORM supports PostgreSQL and PostgreSQL-compatible databases including self-hosted PostgreSQL, serverless providers (Neon, Supabase), and CockroachDB.
Discussions

prisma can't connect to postgresql - Stack Overflow
I've tried to connect Prisma with postgreSQL several times. prisma show this error message : "Error: undefined: invalid port number in "postgresql://postgres:password@localhost:5432/linke... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Prisma Postgres โ€“ Runs on bare metal and unikernels
My $5 VPS can handle more queries in an hour. Like, I realize thereโ€™s more included, butโ€ฆ ยท Is it truly impossible to serve this stuff somewhere closer to cost? If this is close to cost, is this truly as efficient as it gets More on news.ycombinator.com
๐ŸŒ news.ycombinator.com
150
284
November 4, 2024
Stuck for hours with Prisma, Postgres and Express : r/node
๐ŸŒ r/node
How I got Prisma working smoothly in Next.js 15
This is what the Prisma setup instructions in the documentation tell you how to do it. More on reddit.com
๐ŸŒ r/reactjs
3
0
September 30, 2025
๐ŸŒ
Prisma
prisma.io
Prisma ORM
Prisma Postgres gives you standard PostgreSQL with built-in pooling and support for modern deployment environments.
๐ŸŒ
GitHub
github.com โ€บ prisma โ€บ prisma
GitHub - prisma/prisma: Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB ยท GitHub
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - prisma/prisma
Starred by 47.4K users
Forked by 2.4K users
Languages ย  TypeScript 99.0% | JavaScript 0.9% | Shell 0.1% | Dockerfile 0.0% | PLpgSQL 0.0% | Batchfile 0.0%
๐ŸŒ
Medium
medium.com โ€บ @codethematrix โ€บ integrating-prisma-orm-with-postgresql-and-express-3f7b726cecec
Integrating Prisma ORM with PostgreSQL and Express | by Ryan | Medium
July 13, 2022 - Step 1) The first thing we will be doing is setting up our local Postgres database with the SQL shell that gets installed when you install PostgreSQL. Go to the search bar on your computer and type in psql and run it. You should have a terminal pop up that looks like this. ... Keep pressing enter on the prompts until it asks you for your password. ... Once you enter your password, the shell will look like this. ... The next step is to create the actual database we will work with. Enter the following command in the shell and press enter, this will create a database called prisma.
Find elsewhere
๐ŸŒ
Docs
docs.val.town โ€บ guides โ€บ databases โ€บ prisma-postgres
Prisma Postgres | Docs | Val Town
November 26, 2025 - Prisma Postgres provides a serverless PostgreSQL database with a generous free tier.
๐ŸŒ
Vercel
vercel.com โ€บ marketplace โ€บ prisma
Prisma for Vercel โ€“ Vercel
Prisma Postgres is a developer-friendly, serverless database built for high-performance, fullstack applications.
๐ŸŒ
NestJS
docs.nestjs.com โ€บ recipes โ€บ prisma
Prisma | NestJS - A progressive Node.js framework
It is used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (like knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL, MySQL, SQL Server, SQLite, MongoDB and CockroachDB (Preview).
๐ŸŒ
Prisma
prisma.io โ€บ home โ€บ postgresql โ€บ postgresql โ€บ postgresql
Quickstart: Prisma ORM with PostgreSQL (10 min) | Prisma Documentation
PostgreSQL is a powerful, open-source relational database. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to PostgreSQL using Prisma ORM, and generate a Prisma Client for easy, type-safe access ...
๐ŸŒ
Prisma
prisma.io โ€บ home โ€บ next.js โ€บ next.js โ€บ next.js
How to use Prisma ORM and Prisma Postgres with Next.js and Vercel | Prisma Documentation
generator client { provider = "prisma-client" output = "../app/generated/prisma" } datasource db { provider = "postgresql" } model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] } model Post { id Int @id @default(autoincrement()) title String content String?
๐ŸŒ
DEV Community
dev.to โ€บ awalias โ€บ prisma-postgres-4o09
Prisma + Postgres - DEV Community
October 31, 2024 - Open prisma/schema.prisma. Update the datasource block to include DIRECT_URL like so: datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") } Add your data models.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-build-a-rest-api-with-prisma-and-postgresql
How To Build a REST API with Prisma and PostgreSQL | DigitalOcean
November 8, 2022 - In this tutorial, you will build a REST API for a small blogging application in TypeScript using Prisma and a PostgreSQL database. You will set up your PostgreSQL database locally with Docker and implement the REST API routes using Express.
๐ŸŒ
Hacker News
news.ycombinator.com โ€บ item
Prisma Postgres โ€“ Runs on bare metal and unikernels | Hacker News
November 4, 2024 - My $5 VPS can handle more queries in an hour. Like, I realize thereโ€™s more included, butโ€ฆ ยท Is it truly impossible to serve this stuff somewhere closer to cost? If this is close to cost, is this truly as efficient as it gets
๐ŸŒ
DEV Community
dev.to โ€บ thomasbnt โ€บ how-to-use-prisma-postgres-5519
How to use Prisma Postgres ๐Ÿš€ - DEV Community
October 31, 2024 - Next steps: 1. Navigate into ./beautiful-project to begin. 2. Refer to the project README for detailed instructions on running the project: https://github.com/prisma/prisma-examples/tree/latest/databases/prisma-postgres If you have any feedback about this specific template, we want to hear it!
๐ŸŒ
Prisma
prisma.io โ€บ home โ€บ nestjs โ€บ nestjs โ€บ nestjs
How to use Prisma ORM and Prisma Postgres with NestJS | Prisma Documentation
It is used as an alternative to ... knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL, MySQL, SQL Server, SQLite, MongoDB and CockroachDB....
๐ŸŒ
Better Stack
betterstack.com โ€บ community โ€บ guides โ€บ scaling-nodejs โ€บ prisma-orm
Getting Started with Prisma ORM for Node.js and PostgreSQL | Better Stack Community
A comprehensive guide to setting up Prisma ORM with Node.js and PostgreSQL, covering schema design, migrations, CRUD operations, and relationship handling
๐ŸŒ
AI Tinkerers
sf.aitinkerers.org โ€บ technologies โ€บ postgresql-prisma
PostgreSQL/Prisma Projects
April 5, 2026 - It supports PostgreSQL versions 12 through 16: providing native support for JSONB, full-text search, and complex joins without traditional ORM boilerplate. https://www.prisma.io/postgresql