Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QSqlDatabase: QMYSQL driver not loaded

QSqlDatabase: QMYSQL driver not loaded

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.1k 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.
  • T Offline
    T Offline
    Terminator1337
    wrote on 21 Sept 2014, 20:03 last edited by
    #1

    Hi there, I'm trying to use MySQL in my application, but for some reason the driver isn't being loaded. Right underneath that error I also get this: "QSqlDatabase: available drivers: QSQLITE, QMYSQL, QMYSQL3, QODBC, QODBC3, QPSQL, QPSQL7". Obviously it can find the driver, but it can't load it. I have MySQL loaded onto my computer and I'm just trying to connect to a test database. I have my path set to the bin folder where libmysql.dll is, but it still refuses to connect, even though it still builds. If anyone could shed some light on this problem I would be really grateful.

    Thanks!

    P.S: I'm using Windows 8.1 with MinGW 4.8.2 as the compiler

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Sept 2014, 20:24 last edited by
      #2

      Hi and welcome to devnet,

      Can you check what error you get from QSqlDatabase ?

      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
      • T Offline
        T Offline
        Terminator1337
        wrote on 21 Sept 2014, 20:39 last edited by
        #3

        I get Driver not loaded

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Sept 2014, 15:23 last edited by
          #4

          Where did you set the PATH environment variable ?

          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

          1/4

          21 Sept 2014, 20:03

          • Login

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