Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db = mysql.connector.connect(
- host="localhost",
- user="root",
- password="root",
- database="discogs",
- auth_plugin="mysql_native_password"
- )
- cursor = db.cursor()
- cursor.execute(query)
- return cursor.fetchall()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement