Guest User

Untitled

a guest
Apr 12th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import mysql.connector
  2. #conn=mysql.connector.connect(user='root',password='root',host='localhost')
  3.  
  4. # create cursor object
  5. conn=mysql.connector.connect(user='root',password='root',host='localhost')
  6. cursor = conn.cursor(buffered=True)
  7.  
  8. # creating db
  9. cursor.execute("create database db_1")
Add Comment
Please, Sign In to add comment