Qt Remote Database connection
-
112.17.98.18 is this in LAN ? Hope there is no firewall etc between your box and 112.17.98.18.
Since telnet is not able to connect to port 111 are you sure that SQL is running at the port 111 ? -
@dheerendra
Sir SQL is not running in the port 111.Sql port is 3306 .. -
OK can you check telnet 112.17.98.18 3306 ? Does it work ? If it work, atleast DB is up at that port.
-
@dheerendra sir it shows telnet: Unable to connect to remote host: Connection refused
-
If you have access to the DB Server box, can you login to the system. In same system can you try to do telnet <IP> Port#. Just check the configuration of the remote sql server. Is it configured to listen for network connections also ?
-
@Tonny said in Qt Remote Database connection:
mysql client?Please give the procedure to connect it.
-
@dheerendra Sir error solved.
Sir can you please tell me how to sent values through http protocol using qt creator in the REST API
please?Is there any solution for that sir -
What was the issue ? Please provide the details here. It helps others. You can move the issue to SOLVED state.
-
@dheerendra bind address commented. it was 127.0.0.1 (/etc/mysql/mysql.cnf);
-
Your server was configured to listen only for local IP address. You tried to connect to server remotely. This was the issue.
-
@Tonny said in Qt Remote Database connection:
Sir can you please tell me how to sent values through http protocol using qt creator in the REST API
It's Qt not QtCreator. QtCreator is an IDE.
See https://doc.qt.io/qt-5.11/qtnetwork-programming.html -
Mysql or mariadb listen by default to the loopback address 127.0.0.1
you can change this values to the real local networkaddress in
/etc/mysql/ mysqld.cnfbind-address = 192.178.xx.xx
mysqlx-bind-address = 192.178.xx.xxrestart the sql.
that's it