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. HOW to create QT5.6 & MySQL 5.7 DRIVER (HELP!) for QT Creator! For QT 5.6 MINGW 32 compiler
QtWS25 Last Chance

HOW to create QT5.6 & MySQL 5.7 DRIVER (HELP!) for QT Creator! For QT 5.6 MINGW 32 compiler

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.3k Views
  • 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.
  • R Offline
    R Offline
    Ritskes
    wrote on 3 May 2016, 09:59 last edited by
    #1

    Whatever I tried, I can NOT get the DRIVER working or made for QT5.6 with MySQL 5.7
    All examples are with MySQL.PRO file, but this I can NOT find this at all.....
    For both I have downloaded the communicty versions.

    INFO:

    • QT 5.6
    • QT creator 3.6.1
    • MySQL 5.7
    • Windows 10
    • Database server up and running
    • My own project compiles and runs exept the driver

    QT Run Message:
    " QSqlDatabase: QMYSQL driver not loaded "

    Tried many things, but I guess i'm doing something WRONG!

    Just need to have a PROJECT that can access an EXISTING (MySQL) database where I can access tables and insert some fields that I extract from an CSV file. That part is already working and tested, But can NOT access any database due to the QSqlDatabase: QMYSQL driver not loaded thingy..

    Help very much appreciated!!
    (I can give emailadress mobile phone or even teamviewer to have this working)

    Thanks in advance,
    Ritskes

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 3 May 2016, 10:04 last edited by
      #2

      What OS are you running on?
      Do you have qsqlmysql.dll deployed correctly?

      "mobile phone or even teamviewer to have this working". Don't. Just DO NOT!

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 May 2016, 21:30 last edited by
        #3

        Hi and welcome to devnet,

        One of the thing you have to do is to update the PATH environment variable in Qt Creator, in the Run part of the Project panel and add the path to your MySQL .dll files in it for Qt to find them.

        Are you running a 32bit version of MySQL ?

        On aside note, there's this old thread that might give you some clues if you need to rebuild the plugin.

        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/3

        3 May 2016, 10:04

        • Login

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