[Qt-interest] QSqlDatabase: QMYSQL driver not loaded error suddenly appeared
Robert Wood
robert.wood at apostrophe.co.uk
Wed Feb 24 19:36:11 CET 2010
Actually, none of the apps now work. I cleaned the one that was working
and rebuilt it properly, now that fails in the same way, so there is
*something* I have done today that has screwed it all up.
I have been messing with environment variables to try and get a plugin
working in creator, so could I have messed up one of those?
Robert Wood wrote:
> I have suddenly had this error pop up and I can't connect to my sql
> server. The error says this:
>
> QSqlDatabase: QMYSQL driver not loaded
> QSqlDatabase: available drivers: QSQLITE QPSQL7 QPSQL
> QSqlQuery::exec: database not open
> QSqlDatabasePrivate::removeDatabase: connection
>
> Then when I close the program it says this:
>
> 'qt_sql_default_connection' is still in use, all queries will cease to work.
>
> The really weird thing is I haven't changed the source code. The last
> thing I did was create a new table (with this program). Also, if I run a
> different program with the exact same code to initialise the code that
> works, whereas a third program that again I haven't touched does.
>
> I have installed a newer version of qt-sdk today, but the error persists
> with the previous version.
>
> Googling suggests all sorts of things that don't seem to tie up with my
> error as I haven't touched the source code and a different program
> written under Qt works.
>
> Would really appreciate a pointer on this as it's driving me nuts!
>
> Thanks, Rob
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list