Nominate our 2022 Qt Champions!

Driver QMYSQL not load

  • I have problems with the MySQL driver.
    I use Qt 5.0.2 and Qt Creator 2.7.1
    I compile the various as indicated in the documentation.
    After compilation, it has created
    liqsqlmysql.dylib and libqsqlmysql_debug.dylib
    But when I complie a project using MySQl I have the following error:

    bq. QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
    QSqlError(-1, "Driver not loaded", "Driver not loaded")

  • Lifetime Qt Champion


    Did you install the new libs ?

Log in to reply