Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Mysql drivers mac

    General and Desktop
    mysql mac install load driver
    2
    2
    1285
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      Yogi last edited by

      Hi

      I want to use mysql on my app. I have these errors :

      QSqlDatabase: QMYSQL3 driver not loaded
      QSqlDatabase: available drivers: QSQLITE
      

      So i tried to compile and install MYSQL driver on Mac OS:

      • I downloaded Mysql for mac
      • I have Qt 5.5.1

      On my Qt src : Qt/5.5/clang_64/plugins/sqldrivers i have these files :
      libqsqlite.dylib libqsqlodbc.dylib
      libqsqlite_debug.dylib libqsqlodbc_debug.dylib
      libqsqlmysql.dylib libqsqlpsql.dylib
      libqsqlmysql_debug.dylib libqsqlpsql_debug.dylib

      I dont have mysql.pro, i can't run a qmake :

      qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
      

      I tried to download qt src, but they dont have any mysql folder.
      How can i do ?

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        What sources did you download ? You have an option in the installer to get the sources that matches your installed Qt.

        If you take the time to search the forum, you'll find several threads about the MySQL plugin and OS X.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post