简体   繁体   English

如何使用PHPstorm连接到Openshift Mysql数据库?

[英]How to connect to Openshift Mysql database with PHPstorm?

Not succeed after reading stackoverflow and openshift docs. 阅读stackoverflow和openshift文档后未成功。 This is the settings and the error message: 这是设置和错误消息:

http://primere-creatives.rhcloud.com/testing/2014-05-06_11-24-33.jpg http://primere-creatives.rhcloud.com/testing/2014-05-06_11-24-33.jpg

Not sure, have I do port forwarding? 不确定,我是否进行端口转发?

Thanks! 谢谢!

To connect to the MySQL cartridge running on OpenShift you have to first run rhc port-forward command. 要连接到在OpenShift上运行的MySQL盒式磁带,您必须首先运行rhc port-forward命令。 rhc is the command-line client that you can use to work with OpenShift. rhc是可用于OpenShift的命令行客户端。 It is a ruby gem that you can install using gem install rhc command. 它是可以使用gem install rhc命令安装的红宝石gem。 Refer to https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshift and https://www.openshift.com/blogs/set-up-local-access-to-openshift-hosted-services-with-port-forwarding 请参阅https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshifthttps://www.openshift.com/blogs/set-up-local-access-to- openshift托管带有端口转发的服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM