반응형
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 | 29 | 30 |
Tags
- chart.js
- 도커
- or some instances in your deployment group are experiencing problems.
- Jenkins
- codepipeline
- VPN
- Python
- Flux
- java bigdecimal
- Spring Error
- SQL
- Airflow
- codebuild
- codedeploy
- aws
- Kafka
- JavaScript
- chartjs
- aws cicd
- bootstrap
- node
- codedeploy error
- PostgreSQL
- redis
- kubeflow
- COALESCE
- Spring
- AWS CI/CD 구축하기
- IntelliJ
- 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
반응형