Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- dacon
- 편스토랑
- 맥북
- SW Expert Academy
- 금융문자분석경진대회
- Git
- 자연어처리
- 더현대서울 맛집
- ChatGPT
- 프로그래머스
- PYTHON
- 코로나19
- Docker
- 데이콘
- github
- leetcode
- 파이썬
- AI 경진대회
- 캐치카페
- Kaggle
- 백준
- gs25
- hackerrank
- 프로그래머스 파이썬
- programmers
- Baekjoon
- Real or Not? NLP with Disaster Tweets
- ubuntu
- 편스토랑 우승상품
- 우분투
Archives
- Today
- Total
목록
반응형
pymysql charset (1)
반응형
솜씨좋은장씨
[Python] AttributeError: 'NoneType' object has no attribute 'encoding' using pymysql 해결방법
import pymysql user = 'user' password = 'password' db_host = 'localhost' db_port = 3306 table_name = 'test_table' charset = 'utf-8' db = pymysql.connect(host=db_host, port=db_port, user=user, passwd=password, db=table_name, charset=charset, autocommit=True) 오랜만에 위와 같은 방법으로 pymysql을 활용하여 database에 접근하여 저장되어있는 이미지를 다운로드 받기위해 db 연결을 하려고 하니 AttributeError: 'NoneType' object has no attribute 'encodin..
Programming/Python
2021. 10. 26. 14:57
반응형