Re: [python-win32] mysqldb python

2007-10-25 Thread Tim Roberts
kNish wrote: > > Hi, > > After trouble shooting error 10061, 1130, 1045 and 1044. > Finally, the following code works in a python shell. > > import MySQLdb > import MySQLdb.cursors > conn = MySQLdb.connect(host="ENG-3", user = "Any", passwd = "", db = > "daily", cursorclass=MySQLdb

Re: [python-win32] mysqldb python

2007-10-25 Thread Simon Dahlbacka
Yes it should work from a script just as well from the shell, but with this info we cannot say whats wrong .. If you follow the suggestion: what does the server error log say? One possible cause for such an error is that you haven't sent the http headers correctly On 10/25/07, kNish <[EMAIL PR

[python-win32] mysqldb python

2007-10-25 Thread kNish
Hi, After trouble shooting error 10061, 1130, 1045 and 1044. Finally, the following code works in a python shell. import MySQLdb import MySQLdb.cursors conn = MySQLdb.connect(host="ENG-3", user = "Any", passwd = "", db = "daily", cursorclass=MySQLdb.cursors.DictCursor) user='root' also