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 |
Tags
- Baekjoon
- ChatGPT
- 프로그래머스
- github
- 금융문자분석경진대회
- dacon
- 프로그래머스 파이썬
- ubuntu
- 데이콘
- 파이썬
- 편스토랑 우승상품
- 백준
- 우분투
- 자연어처리
- AI 경진대회
- 캐치카페
- 코로나19
- 맥북
- 더현대서울 맛집
- gs25
- programmers
- leetcode
- Kaggle
- 편스토랑
- Docker
- Real or Not? NLP with Disaster Tweets
- PYTHON
- SW Expert Academy
- hackerrank
- Git
Archives
- Today
- Total
목록
반응형
pymysql charset utf8 (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
반응형