반응형
250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Python
- codedeploy
- VPN
- Airflow
- kubeflow
- aws cicd
- PostgreSQL
- COALESCE
- bootstrap
- IntelliJ
- node
- chartjs
- chart.js
- Spring Error
- AWS CI/CD 구축하기
- redis
- 도커
- codedeploy error
- openlens
- Spring
- Jenkins
- java bigdecimal
- aws
- JavaScript
- Flux
- SQL
- codepipeline
- codebuild
- Kafka
- docker
Archives
- Today
- Total
Small Asteroid Blog
[python] python + postgresql 연동하기 본문
728x90
python 프로그래밍 언어용 postgresql 어댑터를 설치해준다.
pip install psycopg2-binary
postgres와 연결하기 위해서는 psycopg2 패키지의 connect이용하면된다.
import psycopg2
conn = psycopg2.connect(
host = "localhost",
port = 5432,
dbname = "test",
user="root",
password="1234")
728x90
반응형