[Tutor] MySQL (no answer yet)

Remco Gerlich scarblac@pino.selwerd.nl
Wed, 17 Oct 2001 23:02:43 +0200


On  0, Szilard Bokros <szilard@int.com> wrote:
(snip)
> As a first step it would be eenough if I could just manipulate the
> database.
> Open it, get something fromit, overwrite something in it, etc...
> right now I reduced the script to a minimal version that does not work,
> somewhere here must be an error:
> 
> #!/usr/local/python
> import MySQLdb
> db = MySQL.connect('localhost', 'eval', 'abrakadabra', 'Rumit')
> #sofar it seems to be OK
> result= db.query("""SELECT * FROM MyTableName""")
> 
> which gives back an error message.

I can't really help since I know nothing about MySQL, but...
what is the error message?

Your mail gives perfect explanation of what you're doing, just not of what
goes wrong :)

Python error messages usually contain a lot of useful information.

-- 
Remco Gerlich