[Qt-interest] QSqlDatabase: QMYSQL driver not loaded error suddenly appeared

Robert Wood robert.wood at apostrophe.co.uk
Wed Feb 24 19:12:58 CET 2010


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




More information about the Qt-interest-old mailing list