Results 1 to 3 of 3

Thread: Loading mysql driver

  1. #1
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Loading mysql driver

    Hello,

    I've managed to successfully run nmake and I got qsqlmysqld4.dll here at debug folder.
    I copied it over to C:\QtSDK\QtCreator\bin\sqldrivers
    I've made new project did QT += core gui sql at .pro file.
    Ran test code to display available sql drivers:
    ("QSQLITE", "QODBC3", "QODBC")

    Theres no mysql driver.

    Anyone got an idea how to load the driver properly after it had been built?


    I'm using Windows 7.

  2. #2
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Loading mysql driver [HELP]

    Can anyone help?

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Loading mysql driver [HELP]

    The location you have placed it in is the private set of Qt libraries that Qt Creator uses. The correct location would be something like:
    C:\QtSDK\Desktop\Qt\4.7.3\mingw\plugins\sqldrivers
    where the Qt version should be adjusted in the obvious way, and the compiler name adapted if you are using MSVC.

    Use "nmake install" or "mingw32-make install" generally does it, but with the split sources/binaries in the Qt SDK I am not sure that is still correct.

Similar Threads

  1. MyLibrary loading mysql driver related problem
    By kornicameister in forum Qt Programming
    Replies: 1
    Last Post: 22nd August 2011, 09:05
  2. QPSQL driver not loading
    By z5 in forum Qt Programming
    Replies: 0
    Last Post: 17th July 2011, 21:16
  3. source code for odbc driver or MySql driver in arm-embedded-linux
    By sattu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th January 2011, 10:11
  4. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 15:19
  5. Error Loading MySql Driver in 4.3.4
    By perrigo in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 14:38

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.