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. QMYSQL not loading for others

QMYSQL not loading for others

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    Audiocrow
    wrote on last edited by
    #1

    I'm trying to get my application working for others. I send them the exe with the following .dlls: QtCore4.dll, QtGui4.dll, QtSql4.dll.

    It runs and doesn't crash, but it fails to connect to the mysql database because it says the drivers don't load. I made an information box appear that tells them what drivers are loading and it just comes up with 'None'. It works fine for me with both the debug and the release version (I'm sending them the release version). What's up?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      You should include the qmysql.dll plugin to your package.
      You can find it in [your_qt_directory]/plugins/sqldrivers

      A word of advice:

      Place this dll on a folder named "sqldrivers" inside your app directory.

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Audiocrow
        wrote on last edited by
        #3

        Actually I did send the entire sqldrivers folder. It still didn't work for the other computer. What else could it be?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ac1975
          wrote on last edited by
          #4

          The qsqlmysql4.dll plugin needs libmySQL.dll.
          You have to provide both files together with your exe.

          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