Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

README.md

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:123456@eu-cdbr-west-02.cleardb.net/heroku_def123456789?reconnect=true"

mysql://abc123456789:123456@eu-cdbr-west-02.cleardb.net/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

Releases

No releases published

Packages

No packages published

Languages