How to make connection to heroku mysql database
https://stackoverflow.com/questions/32109099/how-to-make-connection-to-heroku-mysql-database
heroku config | grep CLEARDB_DATABASE_URL mysql -u be4beb15e4506b -h us-cdbr-iron-east-02.cleardb.net -p heroku_e665c17e181f638 < /var/www/html/Clubhub.sqlurl = parse_url(getenv(" mysql://be4beb15e4506b:f601032d@us-cdbr-iron-east-02.cleardb.net/heroku_e665c17e181f638?reconnect=true"));
$server = $url["us-cdbr-iron-east-02.cleardb.net"];
$username = $url["be4beb15e4506b"];
$password = $url["heroku_e665c17e181f638"];
$db = substr($url["/var/www/html/Clubhub.sql"], 1);
$connection = new mysqli($server, $username, $password, $db);1 Answer
PreviousConnecting mysql database with laravel app in herokuNextRemote connect to clearDB heroku database
Last updated