Advertisement
Guest User

Untitled

a guest
Aug 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. db = mysql.connector.connect(
  2. host="localhost",
  3. user="root",
  4. password="root",
  5. database="discogs",
  6. auth_plugin="mysql_native_password"
  7. )
  8. cursor = db.cursor()
  9. cursor.execute(query)
  10. return cursor.fetchall()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement