Results 1 to 6 of 6

Thread: QT with MySql not running on test computer

  1. #1
    Join Date
    Jul 2017
    Posts
    16
    Qt products
    Qt5
    Platforms
    Windows

    Default QT with MySql not running on test computer

    I have a application that runs perfectly on my laptop, even from the folder that i created to deploy the application. That is the folder where i run windeployqt. The test computer has windows 10, same as mine, but it doesn't have any of MySql packages. The error that i get is "could not load driver". QtsqlMysql.dll is in the sqldrivers folder. Don't know what else to do.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT with MySql not running on test computer

    You have to install MySQL client package. Qt sql driver is only interface between Qt application and client package.

  3. #3
    Join Date
    Jul 2017
    Posts
    16
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QT with MySql not running on test computer

    Well, i tried all kind of different things. I tried to use "dependency walker" to see if i could see what going on to no avail. I downloaded all kind of packages and connectors from MySql website, i even installed mysql workbench and connected to the database. But my application refused to work. Keep telling me that could not load the driver. I'm working on a program that i hope I'm going to sell, when i do i will subscribe to QT customer service but that is too expensive right now, so no finding a solution that can be easily implemented on a customer desktop is not an option. My next step is to compile the program statically, i'm in the process of creating the static compiler for QT. Will let you what happens.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT with MySql not running on test computer

    On the target computer must be libmysql.dll (eg in the directory of your application).

  5. #5
    Join Date
    Jul 2017
    Posts
    16
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QT with MySql not running on test computer

    Yes, i just checked to make sure. I have libmysql.dll on the same directory that the exe is located. Get the same error "could ot load the dirver"

  6. #6
    Join Date
    Jul 2017
    Posts
    16
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QT with MySql not running on test computer

    My apologies to everyone, it was my stupidity. I was looking at the libmysql.dll, the one that i have been playing with had a time stamp of 8/13/2015, that is the one that i have been using to make the distribution folder. I look on my system and there is a libmysql.dll that is dated 7/13/2017 and it is much smaller. So grabbed that dll and put it on the other system and it works perfectly. My guess is that the older dll is a 64bit, while im compiling everything on 32bit. Again please accept my apologies.

Similar Threads

  1. my .exe not running on another computer
    By cindyqt in forum Newbie
    Replies: 2
    Last Post: 6th August 2016, 16:19
  2. Replies: 1
    Last Post: 12th April 2014, 06:51
  3. Replies: 2
    Last Post: 30th October 2012, 14:22
  4. Replies: 3
    Last Post: 17th November 2010, 22:41
  5. running Qt application on computer without Qt
    By vonCZ in forum Installation and Deployment
    Replies: 2
    Last Post: 30th May 2007, 15:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.