Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import mysql.connector
  2. conn = mysql.connector.connect(user='root',password='',host='localhost',database='testdb')
  3. mycursor=conn.cursor()
  4. mycursor.execute("SHOW TABLES")
  5. print(mycursor.fetchall())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement