PDA

View Full Version : Qt + SSH + MySQL



_Dron_
19th January 2015, 10:09
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?

ChrisW67
19th January 2015, 10:54
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.