Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mysql.connector
- mydb = mysql.connector.connect(
- host="host",
- user="username",
- password="password"
- )
- mycursor = mydb.cursor()
- mycursor.execute("CREATE DATABASE database")
- #this is how you create a database in python
- #see also: https://pastebin.com/q4Ubsd71 - https://pastebin.com/JJ0ueBiD - https://pastebin.com/hxCDvCpx - https://pastebin.com/bf6VBk4X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement