일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SSH
- Visual Studio
- pandas
- label
- nvidia-smi
- 컨테이너
- Selenium
- JSON
- C++
- pip
- paramiko
- 핑거스타일
- mysql
- 프로그래머스
- error
- 채보
- ubuntu
- windows forms
- C
- 오류
- Python
- OpenCV
- Linux
- C#
- YOLO
- Numpy
- pytorch
- VS Code
- 기타 연주
- Docker
- Today
- Total
기계는 거짓말하지 않는다
Python pymysql cursor DB 값 변경 인식 불가 본문
pymysql connect의 cursor sql 실행 후 변경된 DB 값을 commit 함수를 호출해도 인식하지 못하는 경우가 있다.
commit 위치가 잘못되었을 수 있고 자동 커밋을 원하면 매번 connect를 새로하는 대신
connect 매개변수에 autocommit=True를 추가한다.
conn = pymysql.connect(host='localhost', port=3306, user=user, passwd=passwd, db=db, charset='utf8', autocommit=True)
참고
Python MySQL not refreshing - Stack Overflow
Python MySQL not refreshing
I have two programs: One that fill and updates a database and another that selects info from the database every 10 seconds. I use Pymysql. When I update the database I commit the data, I can see ...
stackoverflow.com
python Mysql SELECT data not refreshed - Stack Overflow
python Mysql SELECT data not refreshed
Non-commercial, non-professional user, seeking advice for hobbyist project. I'm trying to pull data from one Pi, and scroll it on a second Pi. However, terminal is showing repeats of the data ini...
stackoverflow.com
'Python' 카테고리의 다른 글
Python Module 'ffmpeg' has no attribute 'probe' 오류 (0) | 2023.04.09 |
---|---|
Python stacktrace 출력 traceback module (0) | 2023.04.09 |
Python SSH Client 원격 연결 (Paramiko) (0) | 2023.02.24 |
Python 깊은 복사, 얕은 복사 (Shallow Copy, Deep Copy) (0) | 2023.02.12 |
Python 객체 파일로 저장, 직렬화 (pickle) (0) | 2023.01.28 |