Results 1 to 3 of 3

Thread: QMYSQL driver

  1. #1
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default QMYSQL driver

    On mine PC where there is QT I have compiled the project (I work with base MySQL 5) all perfectly works. On other computer I start the program, but to base it is not connected: QMYSQL driver not loaded. QtSql4.dll and qsqlmysql4.dll lay in a folder with exe a file In what there can be a business?

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMYSQL driver

    Quote Originally Posted by Fastman View Post
    On mine PC where there is QT I have compiled the project (I work with base MySQL 5) all perfectly works. On other computer I start the program, but to base it is not connected: QMYSQL driver not loaded. QtSql4.dll and qsqlmysql4.dll lay in a folder with exe a file In what there can be a business?
    You havo to put qsqlmysql4.dll in a folder called "sqldrivers" placed in the folder containing youe exe and the Qt dll's. In the same folder you have to copy the libmysql.dll.

    Example
    [HTML]
    |
    + MyFolder
    |
    + MyProg.exe
    |
    + QtCore4.dll
    |
    + Qt.... .dll
    |
    + libmysql.dll
    |
    + sqldrivers
    |
    + qsqlmysql4.dll

    [/HTML]
    A camel can go 14 days without drink,
    I can't!!!

  3. The following 2 users say thank you to mcosta for this useful post:

    Fastman (26th October 2007), WinchellChung (7th November 2007)

  4. #3
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMYSQL driver

    he he he ! all fine work ! Thx !

Similar Threads

  1. QSqlDatabase: QMYSQL driver not loaded
    By onder in forum Newbie
    Replies: 12
    Last Post: 29th March 2017, 14:43
  2. SQLite driver unavailable
    By kandalf in forum Installation and Deployment
    Replies: 5
    Last Post: 11th February 2009, 16:36
  3. QMYSQL loading problem
    By ridgesoft in forum Qt Programming
    Replies: 7
    Last Post: 20th May 2007, 14:47
  4. regarding a touch screen driver for qt-embedded
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd March 2007, 10:23
  5. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45

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.