Remote Access to ClearDB MySQL Database on Heroku
Querying a ClearDB MySQL database remotely can be achieved through tools like MySQL Query Browser. To establish the connection, you'll need the following information:
Acquiring Database Credentials and Connection Details:
Determining the Database URL:
Open your command line and enter the following:
heroku config --app <YOUR-APP-NAME>
The output will include a line similar to:
CLEARDB_DATABASE_URL: mysql://user:pass@us-cdbr-east.cleardb.com/DATABASE?reconnect=true
Establishing the Remote Connection:
The above is the detailed content of How to Establish Remote Access to a ClearDB MySQL Database on Heroku?. For more information, please follow other related articles on the PHP Chinese website!