Results 1 to 8 of 8

Thread: qt connect mysql another system

  1. #1
    Join Date
    Dec 2015
    Posts
    4
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default qt connect mysql another system

    Hi. I can read from my database when the file is attached in mysql server, but when I detach the file, not surprisingly, I can't work with the database. What I want to do is to deploy my application to the end user who doesn't have mysql server installed. I know there is a kind of run-about but I am not sure exactly what it is. Every single piece of help is appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt connect mysql another system

    MySQL can be configured to accept network connections from whatever network interface you need, so make sure it listens on the network interface that is reachable from the network the users are on and that the client programs use that hostname or IP address.

    Cheers,
    _

  3. #3
    Join Date
    Dec 2015
    Posts
    4
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: qt connect mysql another system

    I make my application with MySQL database
    I'm running this program on the client computer

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt connect mysql another system

    The client doesn't need to have the MySQL server installed, your server needs to have it running and configured for external client connections.

    A MySQL client doesn't care whether the MySQL server is running on the same machine or another one as long as the server machine is reachable.

    Cheers,
    _

  5. #5
    Join Date
    Dec 2015
    Posts
    4
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: qt connect mysql another system

    Good for
    What is there I
    what should I do?
    I want my database for local
    I use with my project

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qt connect mysql another system

    Look on the MySQL web site. You probably need the MySQL Connector for C++; this is a client-side library for connection to remote database hosts.

  7. #7
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt connect mysql another system

    Quote Originally Posted by hamedaz View Post
    Good for
    What is there I
    what should I do?
    I want my database for local
    I use with my project
    If you want to have the database locally, you run the MySQL service locally.

    Cheers,
    _

  8. #8
    Join Date
    Dec 2015
    Posts
    4
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: qt connect mysql another system

    Will elaborate more on how
    I use

Similar Threads

  1. Replies: 5
    Last Post: 27th January 2014, 22:22
  2. cannot connect to mysql in QT 4.7.2
    By vahidsamimi in forum Installation and Deployment
    Replies: 3
    Last Post: 5th September 2012, 13:55
  3. Replies: 13
    Last Post: 17th June 2011, 17:19
  4. Qt connect different MySQL
    By weixj2003ld in forum Qt Programming
    Replies: 0
    Last Post: 5th August 2009, 08:35
  5. How to connect MySQL with QT
    By diego in forum Qt Programming
    Replies: 0
    Last Post: 27th May 2009, 05:34

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.