Created
April 25, 2017 11:40
-
-
Save Dwiga/06c9aa0365651d51e7813d5c248e1c1a to your computer and use it in GitHub Desktop.
python connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymysql | |
db = pymysql.connect(host="localhost", user="root", passwd="psswrd", db="movie") | |
kusi = db.cursor() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
con = sqlite3.connect("alpha.db") | |
exe = con.cursor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment