From 03f08983e58c0963055d74f7095ce3e254ea1fb8 Mon Sep 17 00:00:00 2001 From: Potenz Date: Wed, 12 Nov 2025 23:57:59 +0530 Subject: [PATCH] updated doc --- packages/db/docs/migration.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/db/docs/migration.md b/packages/db/docs/migration.md index 4137023..83ccff3 100644 --- a/packages/db/docs/migration.md +++ b/packages/db/docs/migration.md @@ -119,7 +119,7 @@ DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp # 🧠 Step 7 — Tips -- Use the same PostgreSQL version as the main PC. +- IMP: Use the same PostgreSQL version as the main PC. - currently more than v17. - For large databases, use parallel restore for speed: @@ -150,3 +150,11 @@ sudo apt install -y postgresql-client-17 ``` PGPASSWORD='mypassword' /usr/lib/postgresql/17/bin/pg_restore -v -U postgres -h localhost -C -d postgres ./backup.dump ``` + + +# If error comes while creating normal db with password: + +- then, give the postgres user its password. +``` +sudo -u postgres psql -c "ALTER ROLE postgres WITH PASSWORD 'mypassword';" +```