Can't connect to MySQL server on 'p-mysql-proxy.run.pivotal.io' (10060)
SSH Tunneling and the MySQL CLI
$ cf ssh -L 63306:us-cdbr-iron-east-01.p-mysql.net:3306 YOUR-HOST-APP
63306
.us-cdbr-iron-east-01.p-mysql.net
with the address provided under hostname
from a service key or service instance.3306
with the port provided by your service key or service instance.YOUR-HOST-APP
with the name of your host app. It doesn't need to be the app to which your MySQL service is bound. For example, if that app has not staged or started.To establish the direct command-line access to your service instance, use the relevant command line tool for that service. This example uses the MySQL command line client to access the p-mysql service instance:
$ mysql -u b5136e448be920 -h 0 -p -D ad_b2fca6t49704585d -P 63306
b5136e448be920
with the username provided under username
in your service key or service instance.-h 0
instructs mysql
to connect to your local machine.-p
instructs mysql
to prompt for a password. When prompted, use the password provided under password
in your service key.ad_b2fca6t49704585d
with the database name provided under name
in your service key.-P 63306
instructs mysql
to connect on port 63306
.