How do I upload my MySQL DB to Heroku for use with a PHP app? The only docs I found on Heroku are this:
Using ClearDB with PHP
Connecting to ClearDB from PHP is super easy, and merely requires the parsing of the CLEARDB_DATABASE_URL to get connected, like this:
<?php
$url=parse_url(getenv("CLEARDB_DATABASE_URL"));
$server = $url["host"];
$username = $url["user"];
$password = $url["pass"];
$db = substr($url["path"],1);
mysql_connect($server, $username, $password);
mysql_select_db($db);
?>
I don't understand how to fill the ClearDB with my data without an SSH connection, or how to create a database or how to connect to it?