Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mysql.connector
- cnx = mysql.connector.connect(user='whatever', password='password',
- host='127.0.0.1')
- cnx.execute("SELECT * from `users` WHERE name="Thomas")
- cnx.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement