DB 연결 문자열
데이터베이스 연결 문자열 빌더/파서
안내
- • PostgreSQL, MySQL, MongoDB, Redis, SQLite, MSSQL 지원
- • 특수문자는 자동으로 URL 인코딩
- • 파싱 결과에서 각 구성요소 확인
- • 민감한 정보는 환경변수로 관리 권장
Connection String Reference
Connection String Formats
PostgreSQL
postgresql://user:password@host:5432/database?sslmode=requireMySQL
mysql://user:password@host:3306/database?charset=utf8mb4MongoDB
mongodb://user:password@host:27017/database?authSource=adminRedis
redis://:password@host:6379/0Common Options
| Database | Option | Description |
|---|---|---|
| PostgreSQL | sslmode | disable, require, verify-full |
| MySQL | charset | utf8, utf8mb4 |
| MongoDB | authSource | Authentication database |
| MongoDB | retryWrites | Enable retry on write errors |
Security Best Practices
- Never commit connection strings to version control
- Use environment variables for sensitive credentials
- Enable SSL/TLS for production connections
- Use connection pooling for better performance
- Rotate credentials periodically
관련 도구
Data Format 전체 보기함께 쓰면 좋은 도구를 확인하세요.