Hi everybody! I am a newbie for PyQT.Now I am write a simple programm which
use mysql as its database,but I find it is very diffucult to use the PyQT
APIs.I write sth like that:
db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
db.setHostName("127.0.0.1")
db.setDatabaseName("test")
db.setUserName("root")
db.setPassword("123456")
db.open()
but it just doesn't work.PS:My mysql version is 5.1,is that the problem? I
try to use MySQLdb to implement my own QSqlDriver and QSqlResult,Could
anybody give me some examples?
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt