creating a new database with mysqldb

John Salerno johnjsal at NOSPAMgmail.com
Wed May 17 22:48:31 EDT 2006


Jesse Hager wrote:

> In every MySQL library I have ever seen, the database parameter is
> optional.  You may either omit it or pass an empty string.  It is just a
> shortcut so the application does not need to send a "USE" command to
> select the active database.

I tried it without the db parameter, then sent a CREATE TABLE query, but 
I got this:

OperationalError: (1046, 'No Database Selected')



More information about the Python-list mailing list