PDA

View Full Version : mysql



zenon
8th June 2009, 16:17
Hello everybody !

I have a problem with the database mysql !
I use the function addDatabase defined as this : QSqlDatabase QSqlDatabase::addDatabase ( QSqlDriver * driver, const QString & connectionName = QLatin1String( defaultConnection ) ) [static]

The first time, i indicate the diver "MySQL" and all is OK !
The second time, i indicate an another information which is the connectionName... In this case, it isn't ok !!

Everyone can help me ??

Thank you ...

e8johan
9th June 2009, 07:49
Are you using the same name twice, without closing the connection in between?