How to delete a database in heroku clearDB?

I see here how to delete Heroku Postgres database. But how can I drop the database if I use addon ClearDB ?

+8
heroku cleardb
source share
1 answer

Another alternative

Using the command line:

heroku config | grep CLEARDB_DATABASE_URL 

Result:

 CLEARDB_DATABASE_URL: mysql://xxx:xxxx@xxxxx/xxxxxx?reconnect=true 

template:

 CLEARDB_DATABASE_URL: mysql://USER:PASSWORD@HOST/DATABASE?reconnect=true 

Replace to connect:

 mysql --host=HOST --user=USER --password DATABASE --reconnect=true 

Then enter the password and press enter:

 Enter password: 
0
source share

All Articles