简体   繁体   中英

How to connect to Openshift Mysql database with PHPstorm?

Not succeed after reading stackoverflow and openshift docs. This is the settings and the error message:

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. rhc is the command-line client that you can use to work with OpenShift. It is a ruby gem that you can install using gem install rhc command. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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