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PSriQWtWh02ifJ0CoAgOhoFQBAdLQKACA6WgUAEB2tAgCI7q06WgUAEBvjKgCA6GgVAEB0tAoAIDpaBQAQHa0CAIiOVgEARPfbvzTQKgCA0BhXAQBEt9MqLly4cHl+LvWnz14r2JUrV86dO3fhwoXC71IJ5z965VevfBqZ3tgAAAAMSURBVHx+vx9GBf1/kcSXFv3mhl4AAAAASUVORK5CYIIA

* 실행 창 단축키는 "Ctrl + R" 와 같습니다.



2. cmd 창에서 다음과 같이 "pip install PyMySQL" 을 실행합니다.

1
2
3
4
5
6
7
C:\Users\Admin>pip install PyMySQL
Collecting PyMySQL
  Downloading PyMySQL-0.7.11-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 428kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-0.7.11
 
cs



3. python 에 접속합니다.

1
2
3
4
C:\Users\Admin>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 
cs



4. pip install 을 통해 설치한 pymsql 을 import 합니다.

1
2
>>> import pymysql
 
cs



5. 접속 정보를 다음과 같이 입력하여 접속을 시도합니다.

1
2
>>> conn = pymysql.connect(host='192.168.11.123', port=3306, user='test', password='test', db='board', charset='utf8')
 
cs

* port 와 같은 경우 기본 포트 3306 일 경우에 생략 가능합니다.



6. 연결이 성공하였을 경우 아래와 같이 커서를 설정합니다.

1
2
>>> curs = conn.cursor()
 
cs



7. 간단한 질의문을 변수에 저장합니다.

1
2
>>> sql = "select * from board_pro"
 
cs



8. 질의문이 담긴 변수를 커서의 실행 메소드에 매개 변수로 전달합니다. 다음 라인에 바로 건수가 출력됩니다.

1
2
3
>>> curs.execute(sql)
7
 
cs



9. 커서로부터 모든 행을 가져와서 rows 변수에 저장합니다.

1
2
>>> rows = curs.fetchall()
 
cs



10. rows 변수에 담긴 값들을 출력합니다.

1
2
3
>>> print(rows)
((4, 'test first', 'test first', 'test first', datetime.datetime(2017, 11, 6, 2, 27, 23), 0), (5, 'test second', 'test second', 'test second', datetime.datetime(2017, 11, 6, 2, 27, 33), 0), (6, 'test third', 'test third', 'test third', datetime.datetime(2017, 11, 6, 2, 27, 41), 0), (7, 'test fourth', 'test fourth', 'test fourth', datetime.datetime(2017, 11, 6, 2, 28, 12), 0), (8, '??? ??', '??? ?????', '??', datetime.datetime(2017, 11, 9, 8, 10, 58), 12), (9, '??? ', '???', '??? ??', datetime.datetime(2017, 11, 9, 8, 13, 53), 1), (10, '??? ? ???....', '?? ??', 'test', datetime.datetime(2017, 11, 9, 8, 45, 38), 5))
 
cs

* 참고로 데이터베이스에서 조회한 결과는 다음과 같습니다.



11. 연결을 끊고 작업을 마무리합니다.

1
2
>>> conn.close()
 
cs



+ Recent posts