Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mysql drivers mac
Forum Updated to NodeBB v4.3 + New Features

Mysql drivers mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
mysqlmacinstallloaddriver
2 Posts 2 Posters 1.5k Views 1 Watching
  • 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 Offline
    Y Offline
    Yogi
    wrote on 11 Jan 2016, 08:36 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jan 2016, 00:05 last edited by
      #2

      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
      0

      2/2

      12 Jan 2016, 00:05

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved