Skip to content

Commit e03a6bd

Browse files
Create .env.example
1 parent 26309a2 commit e03a6bd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.env.example

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ----------------------------------------------------
2+
# Database Environment Variables (rename this to .env)
3+
# ----------------------------------------------------
4+
5+
# JDBC MySQL connection URL
6+
DB_URL=jdbc:mysql://localhost:3306/testdbone
7+
8+
# Database username
9+
DB_USER=root
10+
11+
# Database password
12+
DB_PASS=yourpassword
13+
14+
# ----------------------------------------------------
15+
# Usage:
16+
# Rename `.env.example` → `.env`
17+
# Update DB_USER and DB_PASS with your actual values
18+
# Export variables before running:
19+
#
20+
# Linux/macOS:
21+
# export DB_URL="jdbc:mysql://localhost:3306/testdbone"
22+
# export DB_USER="root"
23+
# export DB_PASS="yourpassword"
24+
#
25+
# Windows (PowerShell):
26+
# setx DB_URL "jdbc:mysql://localhost:3306/testdbone"
27+
# setx DB_USER "root"
28+
# setx DB_PASS "yourpassword"
29+
#
30+
# ----------------------------------------------------

0 commit comments

Comments
 (0)