Results 1 to 6 of 6

Thread: Deployment of QT4 App that uses the MySql driver

  1. #1
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Deployment of QT4 App that uses the MySql driver

    I'm trying to deploy a small application in my office to windows machines that don't have QT installed. The application runs fine as I've included all necessary dll files in the same folder as the app itself.

    Unfortunately, my app can't find the mysql driver. This isn't a static build of QT. Where do I need to put the qsqlmysql.dll in order for my application to work fully? Do I need to include the libmysql.dll as well? If so, where?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deployment of QT4 App that uses the MySql driver

    libmysql.dll should be in the directory where your executable is and qsqlmysql.dll should be in sqldrivers subdirectory (unless you have qt.conf file).

    Use Dependency Walker to check what other DLLs you need (you can ignore *java*.dll).

  3. #3
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deployment of QT4 App that uses the MySql driver

    jacek,

    Thanks for the reply. I've got it working now.

    I have one more question: accessing the database from other machines is very slow. Could you (or anyone with some ideas) provide me with some suggestions that would help me speed up database access?

    I'm currently using MySql and I've set it up to be used on a "server" machine.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deployment of QT4 App that uses the MySql driver

    I don't use MySQL, so I can't help you with it, but first you should check how much data do you pass between client and the server. In PostgreSQL you can log all queries to see how often they're issued --- maybe it's possible also in MySQL. Can your network handle such amount of traffic?

  5. #5
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Deployment of QT4 App that uses the MySql driver

    Quote Originally Posted by kroenecker
    Where do I need to put the qsqlmysql.dll in order for my application to work fully? Do I need to include the libmysql.dll as well? If so, where?
    Same I am not never successful to make to work mysql on window whit qt4...
    Only on mac i have compiled a mysql connecction...

    IMO
    I suggest you to use on window:
    1- ODBC.. from qt ... run at first compile ... and you can attach moore types of database.... mysq to..
    2- If the mysql is remote (slow...) use sqlite3 from qt4 or a staticlibs..
    svn co http://ciz.ch/svnciz/_STATIC_LIBS_QT4/lib_sqlite_qt4/ libx , to work localy fast on db ... and update remote on various port or simple port 80 on cron job , realtime, webdav...... (mysql replace command)


    And troubles vanish....

  6. #6
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deployment of QT4 App that uses the MySql driver


Similar Threads

  1. Connectingto MySQL with QODBC3
    By Philip_Anselmo in forum Qt Programming
    Replies: 22
    Last Post: 9th June 2006, 16:03
  2. Replies: 1
    Last Post: 21st March 2006, 12:54
  3. mySql Result Datatype issues!!!
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2006, 10:26
  4. Mysql + QSqlTableModeil: incorrect locale
    By blackliteon in forum Qt Programming
    Replies: 5
    Last Post: 10th February 2006, 16:07
  5. Qt 4.1 OS on Windows & mysql
    By neeko in forum Installation and Deployment
    Replies: 10
    Last Post: 31st January 2006, 20:22

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.