Results 1 to 15 of 15

Thread: MySQL driver , I have, it still not loaded

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: MySQL driver , I have, it still not loaded

    Try to copy mysql files to %QTDIR%\bin directory, it worked for me...
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Feb 2009
    Location
    Bydgoszcz, Poland
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: MySQL driver , I have, it still not loaded

    Quote Originally Posted by MarkoSan View Post
    Try to copy mysql files to %QTDIR%\bin directory, it worked for me...
    :/ no, it dosn't work . I still have error :

    Qt Code:
    1. QSqlDatabase: QMYSQL driver not loaded
    2. QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Aug 2006
    Location
    Some where in Argentina
    Posts
    23
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Re: MySQL driver , I have, it still not loaded

    make shure that you have the libs and headers from mysql.com whithin the same directory that the aplication is executed

  4. #4
    Join Date
    Feb 2009
    Location
    Bydgoszcz, Poland
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Smile Re: MySQL driver , I have, it still not loaded

    Hi , I recompile all QT library in QTCreator, but before I :

    1. Copied files from :
    Qt Code:
    1. C:\Program Files\MySQL\MySQL Server 5.1\include
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. C:\Program Files\MySQL\MySQL Server 5.1\lib\opt
    To copy to clipboard, switch view to plain text mode 
    to
    Qt Code:
    1. C:\Qt\4.5.1\src\plugins\sqldrivers\mysql
    To copy to clipboard, switch view to plain text mode 

    2. I edit:
    Qt Code:
    1. C:\Qt\4.5.1\src\plugins\sqldrivers\mysql\mysql.pro
    To copy to clipboard, switch view to plain text mode 
    and in line were is :
    LIBS *= -llibmysql
    change to
    LIBS *= -libmysql

    3. You must check that you have a files :
    Qt Code:
    1. libmysql.a
    2. libmysql.dll
    3. libmysql.def
    To copy to clipboard, switch view to plain text mode 
    because in many tutorials is create different file name like : liblibmysql

    4. In QTDir run :
    Qt Code:
    1. configure -qt-sql-mysql
    To copy to clipboard, switch view to plain text mode 

    5. I opened in QTCreator file:
    Qt Code:
    1. C:\Qt\4.5.1\projects.pro
    To copy to clipboard, switch view to plain text mode 
    and I click compile.

    You didn't must wait to end ,because you only need wait to a moment when all sql driver is end compiled. For safe you wait to end

    I hope that you understand me
    Last edited by bigkoma; 7th May 2009 at 23:38.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. mysql driver not loaded after deployment
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 4th September 2011, 10:12
  3. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 17:10
  4. 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, 08:11
  5. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45

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
  •  
Qt is a trademark of The Qt Company.