Connect to lamp app mysql db from outside with db client like tableplus/navicat over ssh tunnel
-
Hi. Is it possible to Connect to lamp app mysql db from outside with db client like tableplus/navicat over ssh tunnel? If so can anyone guide me step by step?
What i've done so far :
- Create new connection on tableplus
- Set the ssh tunnel to cloudron (success)
- Set connection to lamp app db
mysql host : mysql (failed), lampp app internal ip (failed)
mysql user : the value of CLOUDRON_MYSQL_USERNAME
mysql pass : the value of CLOUDRON_MYSQL_PASSWORD
mysql port : the value of CLOUDRON_MYSQL_PORT
Still not success
-
@andirahmat Try this - https://forum.cloudron.io/topic/3237/remote-sql-support-on-a-per-app-basis/2 . I haven't used tableplus/navcat but if you can post a screenshot maybe it helps debugging further. I think instead of mysql you just need to put in the IP of the mysql container using
docker inspect mysql | grep IPAddress
-
@girish said in Connect to lamp app mysql db from outside with db client like tableplus/navicat over ssh tunnel:
@andirahmat Try this - https://forum.cloudron.io/topic/3237/remote-sql-support-on-a-per-app-basis/2 . I haven't used tableplus/navcat but if you can post a screenshot maybe it helps debugging further. I think instead of mysql you just need to put in the IP of the mysql container using
docker inspect mysql | grep IPAddress
ah this is it : docker inspect mysql | grep IPAddress
Thank you @girish !