Yes, it is possible using the oc port-forward command and then connecting with your mysql client.You can also connect to the database from other pods by injecting the ENV variables into your other pods with the oc env command.--gs--On Wed, Aug 5, 2015 at 8:35 AM, Fran Barrera <franbarrera6 gmail com> wrote:
Hello, thanks for your answer.
Is for openshift 3
When I do:
oc exec mysql-pod env|grep MYSQL
The result is:
# oc exec mysql-example-1-0fpj9 env|grep MYSQL
MYSQL_VERSION=5.5How I can use this MYSQL from other PC with IP 192.168.X.X or it's impossible? And Can I access from SSH to this MYSQL from PC with IP 192.168.X.X?
Thanks.El 5/8/2015 2:29 p. m., "Grant Shipley" <gshipley redhat com> escribió:Is for on OpenShift version 2 (Online) or OpenShift 3. In either case, you should have environment variables that were created that you can use.$ env|grep MYSQL--gsOn Wed, Aug 5, 2015 at 4:24 AM, Fran Barrera <franbarrera6 gmail com> wrote:_______________________________________________Hello,When I create an app in Openshift like mysql. How I can connect with this mysql from other PC.This is my schema:PC User - 192.168.X.XMYSQL Hostname - Mysql-example.mydomain.comMYSQL Service - 172.30.x.x 3306¿Mysql hostname is only accesible from port 80?The user can't access from 192.168.X.X to 172.30.X.X and he can't log in MYSQL.¿Is the only way to connect with mysql from the PC user from PhpMyAdmin for example? ¿He can't access to mysql from SSH?
users mailing list
users lists openshift redhat com