Alaa M.
Alaa M.

Reputation: 5273

How to drop database in heroku clearDB?

I see here how to drop Heroku Postgres DataBase. But how can I drop the database if I'm using the addon ClearDB?

Upvotes: 13

Views: 3684

Answers (1)

alditis
alditis

Reputation: 4817

Other alternative

Using the commands line:

heroku config | grep CLEARDB_DATABASE_URL

Result:

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

Pattern:

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

Replace to connect:

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

Then digit the password and press enter:

Enter password:

Upvotes: 7

Related Questions