Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PG::ConnectionBad FATAL: database "myapp_development" does not exist

I'm using Heroku and following the tutorial about rails.

When I type $ foreman start I encounter below error.

PG::ConnectionBad
FATAL: database "myapp_development" does not exist

I access psql and then createdb myapp_devleopment. After type these and then type again foreman start, I also have same problems. What I have to do?

like image 277
user2952980 Avatar asked Feb 02 '26 18:02

user2952980


2 Answers

Given that you mispelled the name in your question, make sure you didn't mispelled it in your system as well.

It should be

myapp_development

not

myapp_devleopment
like image 95
Simone Carletti Avatar answered Feb 05 '26 07:02

Simone Carletti


in your local folder(where your app is) just run createdb name ,where name is the name of the database it is said it's missing``

like image 44
Dsp Avatar answered Feb 05 '26 07:02

Dsp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!