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. [SOLVED] Issue linking to MySQL

[SOLVED] Issue linking to MySQL

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • H Offline
    H Offline
    Hatchi
    wrote on last edited by
    #1

    Dear All

    I was experiencing the following problem:
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLIT QMYSQL ....

    I searched the internet and found I had to link the dll files of MySQL.

    http://www.jonaspoelmans.com/sql.png

    However I keep getting an error for which I do not find a solution.

    My computer has Windows 7 installed, 64 bit and Qt 5.2.1 for Windows 64 bit.

    What can I do to solve this problem?

    Hatchi

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Short answer: spaces in paths on windows are evil.

      You should at least quote your path using e.g. $$quote("My path with space")
      or use the 8.3 notation.

      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
      • H Offline
        H Offline
        Hatchi
        wrote on last edited by
        #3

        Thank you it solved the problem!

        1 Reply Last reply
        0

        • Login

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