August 24, 2017

How to connect automatically to cloud foundry MariaDB service from linux console?


I need to do an automatisation of the backup of our MariaDB service from an Linux Ubuntu server.

The connexion to the service must pass through the cloud foundry service connector which create a secured tunnel.

For example : cf service-connector 13000

My problem is that this command is blocking the command line, so I don’t know how to launch this command AND then connecting to the database. I have tried to run the command in background with ‘nohup’ without success.

Is there a solution for automatic connexion to the mariaDB service ?

Thank you,

Nagesh Kumar

Click Here!