Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to drop database in heroku clearDB?

Tags:

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?

like image 346
Alaa M. Avatar asked Aug 29 '15 19:08

Alaa M.


People also ask

How do I use ClearDB heroku?

In heroku website, go to My Apps and select the app on which you have installed ClearDB. On the top corner click on Addons and then select ClearDB MySQL Database. Once there, click on your database and choose the 'Endpoint Information' tab. There you see your username/password.

What is ClearDB in heroku?

ClearDB on Heroku enables you to build your apps using native MySQL databases so that you can focus on your applications and get your ideas to market faster.

Is ClearDB on heroku free?

Heroku customers can get started using ClearDB on Heroku for free with our 5MB Ignite package, and move into production use with our Punch package, a great price at $9.99 per month with 1GB of storage.


1 Answers

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:
like image 175
alditis Avatar answered Oct 21 '22 13:10

alditis