在Openshift环境中,如何访问其他应用程序中的数据库? [英] in Openshift environment, how to access a database in a different application?

查看:79
本文介绍了在Openshift环境中,如何访问其他应用程序中的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图从Openshift环境中的wordpress应用程序访问jboss eap应用程序中的mysql.我关注了此博客文章,并在wordpress上准备了一个php文件具有$ dbhost,$ dbuser,$ password的服务器指向我的jbosseap应用程序中的数据库.不幸的是,它没有用.每次出现没有通往主机的路线"错误时.但是,如果我将数据库指向wordpress应用中的数据库(即本地数据库),则效果很好.

I have been trying to access a mysql in a jboss eap application from a wordpress application in Openshift environment. I followed this blog post on this subject and prepared a php file on the wordpress server with $dbhost, $dbuser, $password point to the database in my jbosseap app. Unfortunately, it did not work. Each time I got a "no route to host" error. However, if I point the database to that in the wordpress app, i.e. local database, it worked perfectly.

我想知道当php脚本和数据库位于不同的Openshift应用程序中时,是否还必须执行其他步骤?

I am wondering if there must be additional step(s) to execute when the php script and the database are in different Openshift applications?

推荐答案

在Redhat中与一些人交谈之后,我得出结论,在Openshift环境中无法在不同应用程序之间共享数据库访问.您可能会看到一些技术文档来说明如何做到这一点,但这是针对Openshift/Redhat Internet环境的,而不是针对Openshift的常规客户的. 最后,我使用Web服务在应用程序之间共享数据库访问.

After talking to some people in Redhat, I concluded that it is not possible to share database accesses between different applications in Openshift environment. You may see some technical documents which show how to do it, but that is for Openshift/Redhat internet environments, not for regular customers of Openshift. At the end, I used webservices to provide sharing of DB accesses between applications.

调查是在2015年8月.希望它会或已经改变

The investigation was in August 2015. Hope it will or has changed

这篇关于在Openshift环境中,如何访问其他应用程序中的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆