Results 1 to 3 of 3

Thread: Sql Driver: MYSQL not loaded

  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Sql Driver: MYSQL not loaded

    Some weeks ago I had a problem on my pc with Qt MySql driver : here
    I fixed this problem by copying libmysql.dl in my "executable" folder as suggested.
    Now I have to migrate on another Pc where Qt are not installed.
    I copied the executable and all the .dll dependencies in a folder on that Pc and I'm back to the initial problem. In fact the program run correctly, but when I try to connect to database I got the same message of "QMYSQL not loaded".
    Any idea?

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: Sql Driver: MYSQL not loaded

    this is my file/directory structure when i distribute my application:

    MyApp.exe
    QtCore4.dll
    QtGui4.dll
    QtSql4.dll
    libmySQL.dll
    mingwm10.dll
    libgcc_s_dw2-1.dll

    sqldrivers\
    ----- qsqlmysql4.dll

  3. The following user says thank you to saa7_go for this useful post:

    stilgar (15th June 2010)

  4. #3
    Join Date
    Apr 2010
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sql Driver: MYSQL not loaded

    Putting qsqlmysql4.dll in sqldrivers folder works!.
    Thank you

Similar Threads

  1. mysql driver not loaded after deployment
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 4th September 2011, 11:12
  2. MySQL driver , I have, it still not loaded
    By bigkoma in forum Qt Programming
    Replies: 14
    Last Post: 30th January 2011, 11:38
  3. MySQL driver not loaded
    By hami in forum Installation and Deployment
    Replies: 1
    Last Post: 12th May 2009, 20:54
  4. MySql Driver not loaded
    By eekhoorn12 in forum Installation and Deployment
    Replies: 13
    Last Post: 18th June 2007, 14:57
  5. My Mysql 5 and Qt 4.2.2 Problem (Driver not loaded)
    By fengtian.we in forum Qt Programming
    Replies: 4
    Last Post: 9th February 2007, 09:11

Tags for this Thread

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.