Results 1 to 5 of 5

Thread: QT/mySQL deployment issue

  1. #1
    Join Date
    Jun 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QT/mySQL deployment issue

    Hi

    I'm having a bit of trouble with deploying a QT app that connects to a mySQL database.

    A bit of info:
    QT 4.3.0 (Windows Open Source Edition)
    mySQL 5

    It works fine on my computer but as soon as I move it to a different computer that doesn't have QT or mySQL installed it fails to connect. The GUI comes up but then there will be no connection. I have attempted to use addLibraryPath() but that has not succeeded.

    Any suggestions would be greatly appreciated.

    Thanks
    Graeme

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT/mySQL deployment issue

    Please search the forum before asking question that have been answered several times.
    A simple search for MySQL+problem will reveal relevant threads.

  3. #3
    Join Date
    Jun 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT/mySQL deployment issue

    I have done so and, so far, have had no success.

    Following your advice in another thread let me layout what I have attempted:

    My directory structure looks like this:
    /Working Dir
    ---bd.exe
    ---mingwm10.dll
    ---qtcore4.dll
    ---qtgui4.dll
    ---qtsql4.dll
    ---qtdesigner4.dll
    ---libmysql.dll
    ---/sqldrivers
    ....---qsqlmysql.dll

    When I run it on my computer (with QT and mySQL installed) it runs fine, but if I try on another computer with neither of those installed then the program runs, but does not connect as far as I can see as no data appears.

    I look forward to a response.
    Graeme

  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: QT/mySQL deployment issue

    Quote Originally Posted by smtgra011 View Post
    but if I try on another computer with neither of those installed then the program runs, but does not connect as far as I can see as no data appears.
    What does QSqlDatabase::drivers() return? Also make sure that the user has privilege to connect from a remote host.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT/mySQL deployment issue

    And that there is no firewall that may block access.

Similar Threads

  1. qt application deployment issue?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 1st May 2007, 06:09

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.