Results 1 to 2 of 2

Thread: Qt + SSH + MySQL

  1. #1
    Join Date
    Jan 2015
    Location
    Russia, Moscow
    Posts
    6
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Question Qt + SSH + MySQL

    Hello!
    Can anyone help me with ssh connection to remote MySQL server?
    I use QSQLDatabase, have a private key for ssh. How to make SSH? What should I do?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt + SSH + MySQL

    Read the SSH manual about how to create a tunnel to a MySQL server that is configured to accept connection by TCP, and then tell your Qt program to connect to the local end of that tunnel as if it were the remote server. The default MySQL port is 3306.

Similar Threads

  1. Mysql on OSX
    By klaviaturist in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2011, 10:49
  2. MySQL and QT
    By arjoshi in forum Newbie
    Replies: 7
    Last Post: 15th March 2011, 15:11
  3. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 15:19
  4. Qt with MySql
    By lyucs in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2010, 22:27
  5. MYSQL 5 Table qt model as small Mysql admin
    By patrik08 in forum Qt-based Software
    Replies: 0
    Last Post: 1st May 2007, 09:43

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.