Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
/ parse-cleardb-url Public archive

⌨️ A simple PHP script to parse ClearDB MySQL environment variable on Heroku.

Notifications You must be signed in to change notification settings

cba85/parse-cleardb-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Clear DB Parse Url

A simple PHP script to parse CLEARDB_DATABASE_URL environment var for ClearDB MySQL add-on on Heroku.

Usage

php -f parseClearDBUrl.php "mysql://abc123456789:[email protected]/heroku_def123456789?reconnect=true"

mysql://abc123456789:[email protected]/heroku_def123456789?reconnect=true is the CLEARDB_DATABASE_URL config var of your Heroku app.

Display

Array
(
    [scheme] => mysql
    [host] => eu-cdbr-west-02.cleardb.net
    [user] => abc123456789
    [pass] => 123456
    [path] => /heroku_def123456789
    [query] => reconnect=true
)

About

⌨️ A simple PHP script to parse ClearDB MySQL environment variable on Heroku.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages