Connect to OpenShift (Redhat Paas) mysql instance

前端 未结 1 691
無奈伤痛
無奈伤痛 2021-01-28 08:57

I\'m trying to connect my c# application with openshift database. But I get this exception on the conn.Open()

Eccezione =>  MySql.Data.MySqlClient         


        
相关标签:
1条回答
  • 2021-01-28 09:25

    Alright, I finally worked it end-to-end but it is Mysql Workbench via ssh tunnel. It is a requirement for openshift as it is a PaaS sitting on top of IaaS AWS (Amazon EC2). So for the developer it is no problem. For the end-user, without a ssh-rsa public keypair, it won't work, as I see it.

    A few good links to capture along the way: A site for quick and easy 2048bit ssh-rsa key gen. A doc for putty and puttygen. The doc for tunnel setup (critical); look what dgreen wrote.

    A solution is to either supply a keypair with the app, and tweak your C# accordingly for the tunnel, or to go with AWS EC2 IaaS and it is a snap. AWS has a Free-tier for a year. I could set that up easily, as that is where I am most familiar. But I must say I do like Openshift and its PHP front end.

    0 讨论(0)
提交回复
热议问题