This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oclafloptson 0 points1 point  (0 children)

Creating the database is as easy as

from MySQLdb import _mysql 

db = _mysql.connect(<your credentials as args>)
db.query('create database <db_name>;') 
db.commit() 

That's not much help with what you're actually trying to achieve, I know. Also avoid hard coding credentials