I am new to python although I have used perl and php and mysql. I have embedded mysql using mysql4.0.17 and mysql-python0.9.3b2(with help from a website hosted as wisc.edu). How do I create a new database and add tables to the embedded server.
I use
>>import MySQLdb
>>MySQLdb.server_init(args=['c:\python23\python', '--datadir=c:/mysql/data'])

Now I get the following
--------Restart---------
Any command after this I get the interpreter prompt
>>dbref = MySQLdb.connect(db='test')
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in -toplevel-
    dbref = MySQLdb.connect(db='test')
NameError: name 'MySQLdb' is not defined

What am I doing wrong here?
Any help/ pointers to other sources apart from mysql documentation is welcome.
I have read and re read the mysql documentation and even for a experienced novice like me it is fairly cryptic
Thanks
truthman