https://dev.mysql.com/doc/connector-python/en/
아주 간단한 MySQL 연동 샘플 입니다. mysql.connector 사용하며
데이터베이스는 mysql online 에서 제공하는 employee 데이터베이스를 이용 하였습니다.
#!/usr/bin/python
info = {
def mysql_disconnect(self):
try: query = ("""\
except Exception as e: |
'SOURCE' 카테고리의 다른 글
[Python] Redis INFO 정보 출력하기 (0) | 2017.02.18 |
---|---|
[Python] MongoDB 컬렉션 사이즈 확인 (0) | 2017.02.09 |
Comments