Hi, > This will fail because you have quote marks around 'host', 'user', > etc. See the tutorial on keyword arguments.. Now i have:
import MySQLdb conn = MySQLdb.connect(host = "localhost", user = "testuser", passwd = "testpass", db = "test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () print "server version:", row[0] cursor.close () conn.close () Same problem :( Can't really figure why :( Any ideas ? Warm Regards, Mário Gamito _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor