Results 1 to 2 of 2

Thread: MySQL Plugin Deployment

  1. #1

    Question MySQL Plugin Deployment

    I'm new to QT and am having trouble with the MySQL plugin. I installed QT and MySQL on my development Windows XP machine and was able to build the plugin without issue using this command:

    C:\Qt\2009.03\qt\src\plugins\sqldrivers\mysql>conf igure.exe -platform win32-msvc -debug-and-release -opensource -plugin-sql-mysql -l libmysql -I c:\MySQL5\include -L c:\MySQL5\lib\opt -L C:\MySQL5\lib\debug

    I was also able to run my application that uses my QT-enabled DLL that connects to the database from my PC. Now, I'm trying to deploy my DLL and am having no luck.

    The client PC is also running Windows XP and does not have the QT or MySQL installed. My deployed files are:

    c:/MyApp/
    myDll.dll
    QtCore4.dll
    QtSql4.dll
    libmysql.dll
    plugins/
    sqldrivers/
    qsqlmysql4.dll


    No matter where I put the qsqlmysql4.dll, I get the following error:

    QFactoryLoader::QFactoryLoader() looking at "c:/MyApp/plugins/sqldrivers/qsqlmysql4.dll"
    "Cannot load library c:/MyApp/plugins/sqldrivers/qsqlmysql4.dll: The specified module could not be found."
    could not load
    QSqlDatabase: QMYSQL not loaded
    QSqlDatabase: available drivers:


    I've messed around with the qt.conf file, but don't really understand what I should be putting in there. I've tried this:

    [Path]
    Plugins=c:/MyApp/plugins/sqldrivers


    Any help would be highly appreciated.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySQL Plugin Deployment

    You must share with application DLL's from MySQL. qsqlmysql4.dll is only a bridge from Qt application to real MySQL driver.
    PS.
    Ooops, I see that You have libmysql.dll. Just use dependency walker

Similar Threads

  1. Build Mysql plugin for Qt
    By Qt Coder in forum Qt Programming
    Replies: 9
    Last Post: 19th September 2009, 09:07
  2. Issues creating MySql Plugin on Windows
    By NicholasSmith in forum Installation and Deployment
    Replies: 2
    Last Post: 29th April 2009, 09:04
  3. How to use static mysql plugin
    By khikho in forum Qt Programming
    Replies: 7
    Last Post: 19th January 2009, 21:44
  4. Qt4 win opensource + mysql plugin
    By vr in forum Installation and Deployment
    Replies: 3
    Last Post: 25th May 2007, 09:01
  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.