반응형
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
- Airflow
- Jenkins
- VPN
- PostgreSQL
- docker
- Flux
- bootstrap
- AWS CI/CD 구축하기
- aws cicd
- or some instances in your deployment group are experiencing problems.
- java bigdecimal
- codedeploy error
- aws
- Spring
- Kafka
- chartjs
- codepipeline
- node
- SQL
- Spring Error
- 도커
- kubeflow
- redis
- codebuild
- codedeploy
- COALESCE
- JavaScript
- IntelliJ
- chart.js
- Python
Archives
- Today
- Total
Small Asteroid Blog
(오류) (2003, "Can't connect to MySQL server on 'root' ([Errno 11001] getaddrinfo failed)") 본문
백엔드/Python
(오류) (2003, "Can't connect to MySQL server on 'root' ([Errno 11001] getaddrinfo failed)")
작은소행성☄️ 2020. 9. 28. 10:04728x90
(2003, "Can't connect to MySQL server on 'root' ([Errno 11001] getaddrinfo failed)")
루트 서버에 접속할 수 없다.
즉 db연결이 안됨
내가 작성한 코드 예시
user = 'root'
password = ''
host = '127.0.0.1'
database = 'test'
port = 3306
conn = pymysql.connect(user,password,host,database,port)
cursor = conn.cursor()
val_insert = df_pd.values.tolist()
cursor.executemany("insert into tabname (no,company,title,date,link) values(%d,%s,%s,%s,%s)",val_insert)
conn.commit()
conn.close()
728x90
반응형
'백엔드 > Python' 카테고리의 다른 글
(오류) (pymysql.err.OperationalError) (1054, "Unknown column '컬럼명' in 'field list'") (0) | 2020.09.28 |
---|---|
[python] not all arguments converted during string formatting (0) | 2020.09.28 |
(크롤링) 파이썬 mariadb 연동하기 (0) | 2020.09.25 |
[python] Konlpy - No such file or directory: '/usr/lib/jvm' (0) | 2020.09.15 |
파이썬으로 워드 클라우드 만들기 (카카오톡 대화내용) (0) | 2020.07.30 |