[Qt-interest] Qt - Mysql - Driver not found

Thiago Macieira thiago at kde.org
Thu Aug 18 13:35:55 CEST 2011


On Thursday, 18 de August de 2011 15:23:15 Ankit Agarwal wrote:
> For the qDebug() << QSqlDatabase::drivers(); statement, the output is :
> > *("QSQLITE")
> > *
> 
> For "ls /usr/local/Trolltech/Qt-4.7.3/plugins/sqldrivers/ ", the output is :
> > *libqsqlite.so  libqsqlmysql.so*
> 
> I followed the instructions as giving the documentation. (in
> sql-driver.html)

Given that the plugin exists but the driver isn't available, check if the 
plugin can be loaded at all.

ldd /usr/local/Trolltech/Qt-4.7.3/plugins/sqldrivers/libqsqlmysql.so

If you see any "not found", fix them.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110818/33556e96/attachment.bin 


More information about the Qt-interest-old mailing list