I am trying to understand PCF concepts and thinking that once i am done with creating mysql services in PCF, how i can manage that database like creating tables and maintaining that table just like we do in pur traditional environment using mySqldeveoper. I came across one service like PivotalMySQLWeb and tried but didnt liked it much. So if somehow i can get connection details of mysql service , i can use that to connect using sql developer.
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
The links @khalid mentioned are definitely good.
http://docs.pivotal.io/p-mysql/2-0/use.html https://github.com/andreasf/cf-mysql-plugin#usage
More generally, you can use an SSH tunnel to access any service, not just MySQL. This also allows you to use whatever tool you would like to access the service.
This is documented here, but if for some reason that goes away here are the steps.
cf env <app>
or if you use a service key runcf service-key MY-DB EXTERNAL-ACCESS-KEY
and either one will give you your service credentials.cf ssh -L 63306:us-cdbr-iron-east-01.p-mysql.net:3306 YOUR-HOST-APP
, where63306
is the local port you'll connect to on your machine andus-cdbr-iron-east-01.p-mysql.net:3306
are the host and port from the credentials in step #3.mysql -u b5136e448be920 -h localhost -p -D ad_b2fca6t49704585d -P 63306
, whereb5136e448be920
andad_b2fca6t49704585d
are the username and database name from step #3 and 63306 is the local port you picked from step #4.