creating a new database with mysqldb

Philippe Martin pmartin at snakecard.com
Wed May 17 21:30:21 CEST 2006


John Salerno wrote:

> Since the connect method of mysqldb requires a database name, it seems
> like you can't use it without having a database already created. So is
> there a way to connect to your mysql server (without a specified
> database) in order to create a new database (i.e., the CREATE DATABASE
> query)?
> 
> Thanks.

I'm no expert but: can't you spawn mysql with a script/scheme ?

Philippe




More information about the Python-list mailing list