Created
April 25, 2017 11:18
-
-
Save Dwiga/6fc5f8b08976cbeb4456d5e1064b0ab4 to your computer and use it in GitHub Desktop.
python connection to sqllite and mysql
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 | |
import pymysql | |
"""sqlite""" | |
con = sqlite3.connect("alpha.db") | |
exe = con.cursor() | |
"""MySQL""" | |
db = pymysql.connect(host="localhost", user="root", passwd="psswrd", db="movie") | |
kusi = db.cursor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment