I’m new on Wappler, so, maybe I’m missing something …
I want to make a new Database Connection to an external mysql server.
Usually we’re using a “TCP/IP over SSH” to access the mysql server on that external machine.
Any idea how to do this with wappler ?
On mysql Workbench this would be like in the following image.
Hi Gunter,
Same principle really. Provide credentials in Server Connect to your database server.
Open Server Connect.
Create a new Action.
Add a new Step - Database Actions / Add Database Connection.
Enter your MySQL credentials.
Hit Test Connection.
Save Database Connection.
Files uploaded to your server.
Database Connection created.
Rinse and repeat for any further Database Connections you require.
Maybe we’re talking about two different things.
You suggest to deploy (upload) the application to a WebServer. Thus there will be a localhost access from backend to mysql.
Fine and this will work OK.
But in our case the web server and the mysql server are hosted on different computers (cloud systems). Therefore they are talking with each other via a web connection.
The simple thing would be a mysql connection via IP adress, but that is pretty open (unsecure).
To make this connection secure it usually is done via a SSH connection.
For doing this manually there are ways in PHP which will connect to mysql via SSH, but they differ from the usual ones - and with Wappler we’re not doing this in code manually.
Therefore we will have to give the SSH creditals to Wappler somehow.
But as a newbie I cannout find how
That would be a nice feature to incorporate SSH in to Wappler. Currently I am pretty sure this option is not available. I’m sure @George can confirm for you.
After further investigation - seems that connecting from PHP to MySQL server through SSH is not really a well developed solution.
However - you can actually already do it by installing such tunnel on your server first that maps to local post and connect to that port. A good tool for that is autossh