Results 1 to 2 of 2

Thread: MYSQL plugin seems to be built properly, but not loaded in QtCreator [Windows]

  1. #1
    Join Date
    Jun 2010
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default MYSQL plugin seems to be built properly, but not loaded in QtCreator [Windows]

    I have downloaded the very latest QtSDK 4.6.2 and then compiled the mysql plugin sucessfully following the tutorials around the internet. The Qt was recompiled as well, passing to configure.exe the argument -qt-sql-mysql or -plugin-sql-mysql, not sure right now, but does it make difference in this case?

    The problem is that QtCreator won't let the application load the driver:
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC

    Note: When i put the .dll files within the executable directory, it seems to run perfectly... So the problem must be about finding the dll correct path...

    I have the .a and .dll in the proper places as far as i know, QT += sql in the .pro file..
    I have no clue what is causing this problem, need a hand : )
    Thanks in advance
    Last edited by GabrielGray; 26th June 2010 at 13:20.

  2. #2
    Join Date
    Jun 2010
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MYSQL plugin seems to be built properly, but not loaded in QtCreator [Windows]

    EDIT: Today i spent a great deal of time looking for an answear, and made it work! I concluded it would work by putting the libmysql.dll renamed to libmysql.lib in the %QTDIR%/bin folder.

    Thanks anyway, if you have a neater solution, feel free to post : `)
    Last edited by GabrielGray; 29th June 2010 at 23:33.

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

    aurorius (8th August 2010)

Similar Threads

  1. Driver MySQL Built, but...
    By vinny gracindo in forum Newbie
    Replies: 1
    Last Post: 28th March 2010, 17:06
  2. Making MySQL plugin work on a windows x86 enviroment
    By Baasie in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd September 2009, 16:15
  3. Issues creating MySql Plugin on Windows
    By NicholasSmith in forum Installation and Deployment
    Replies: 2
    Last Post: 29th April 2009, 10:04
  4. MySql Driver not loaded
    By eekhoorn12 in forum Installation and Deployment
    Replies: 13
    Last Post: 18th June 2007, 14:57
  5. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 16: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.