Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QMYSQL not loading for others

    Installation and Deployment
    3
    4
    1082
    Loading More Posts
    • 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
      Audiocrow last edited by

      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 Reply Quote 0
      • C
        Code_ReaQtor last edited by

        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 Reply Quote 0
        • A
          Audiocrow last edited by

          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 Reply Quote 0
          • A
            ac1975 last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post