For at oprette en mysql
database du bare forbinder til serveren og opretter databasen:
import sqlalchemy
engine = sqlalchemy.create_engine('mysql://user:[email protected]rver') # connect to server
engine.execute("CREATE DATABASE dbname") #create db
engine.execute("USE dbname") # select new db
# use the new db
# continue with your work...
selvfølgelig skal din bruger have tilladelse til at oprette databaser.