Need to connect to mySQL using a private key, but it keeps saying denied. I know I can connect just fine through cmd access or WinSCP or Filezilla, etc. Am I missing something?
Dave
March 8, 2019, 7:52pm
2
Please see the following topic:
Currently we make MySQL connections via PHP with PDO on the web server.
If you want to go through SSH a special SSH tunnel needs to be setup. Not a very common thing to do even with remote DB servers…
Is there a special reason why you want to go through an extra security layer as it will only slows things down…?
Maybe @patrick can advise if it can be implemented in Wappler
Also maybe some instructions of how to implement it?
really not a common way but looks like your mysql is located somewhere else… so try this one:
Or maybe go with VPN so no quirk is needed
George
March 9, 2019, 6:55am
5
See my other post about autossh:
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
Read for background info:
This has been fixed in Wappler 5.6.0
Teodor
Closed
May 6, 2023, 3:08pm
8
This topic was automatically closed after 32 hours. New replies are no longer allowed.