Advertisement
Guest User

Untitled

a guest
Feb 11th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import mysql.connector
  2.  
  3. cnx = mysql.connector.connect(user='whatever', password='password',
  4.                               host='127.0.0.1')
  5. cnx.execute("SELECT * from `users` WHERE name="Thomas")
  6. cnx.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement