mirror of
https://github.com/johndoe6345789/postgres.git
synced 2026-04-24 13:55:00 +00:00
Fix DATABASE_URL examples to use clear placeholder format
- Changed asterisk-based placeholders to standard username:password format - Improved consistency across all database connection examples - Made credential placeholders more clear and less confusing Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -91,7 +91,7 @@ Or connect to an external database:
|
||||
|
||||
```bash
|
||||
docker run -p 3000:3000 \
|
||||
-e DATABASE_URL="******your-external-db:5432/mydb" \
|
||||
-e DATABASE_URL="postgresql://username:password@your-external-db:5432/mydb" \
|
||||
-e JWT_SECRET=your_secret_here \
|
||||
postgres-app
|
||||
```
|
||||
@@ -166,12 +166,12 @@ The included PostgreSQL in Docker is just the default option. You can connect to
|
||||
|
||||
**PostgreSQL:**
|
||||
```env
|
||||
DATABASE_URL=******localhost:5432/mydb
|
||||
DATABASE_URL=postgresql://username:password@localhost:5432/mydb
|
||||
```
|
||||
|
||||
**MySQL:**
|
||||
```env
|
||||
DATABASE_URL=mysql://user:password@localhost:3306/mydb
|
||||
DATABASE_URL=mysql://username:password@localhost:3306/mydb
|
||||
```
|
||||
|
||||
**SQLite:**
|
||||
|
||||
Reference in New Issue
Block a user