# Database "discourse\_development" does not exist

**URL:** https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022
**Category:** Development
**Created:** [October 2, 2019, 8:24am UTC](https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022 "2019-10-02T08:24:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ramjke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ramjke/32/150397_2.png) [@ramjke](https://meta.discourse.org/u/ramjke)
#### Post date: [October 2, 2019, 8:24am UTC](https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022/1 "2019-10-02T08:24:10Z")

</div>

After latest git pull update I’m trying to create database with rake db:create and getting this:

```
rake aborted!
ActiveRecord::NoDatabaseError: FATAL: database "discourse_development" does not exist
/vagrant/discourse/lib/site_settings/db_provider.rb:61:in `table_exists?'
/vagrant/discourse/lib/site_settings/db_provider.rb:16:in `all'
/vagrant/discourse/lib/site_settings/defaults_provider.rb:29:in `db_all'
/vagrant/discourse/lib/site_setting_extension.rb:277:in `block in refresh!'
/vagrant/discourse/lib/site_setting_extension.rb:274:in `synchronize'
/vagrant/discourse/lib/site_setting_extension.rb:274:in `refresh!'
/vagrant/discourse/lib/site_setting_extension.rb:479:in `block in setup_methods'
/vagrant/discourse/plugins/discourse-narrative-bot/plugin.rb:51:in `block in activate!'
/vagrant/discourse/lib/plugin/instance.rb:329:in `block in notify_after_initialize'
/vagrant/discourse/lib/plugin/instance.rb:327:in `each'
/vagrant/discourse/lib/plugin/instance.rb:327:in `notify_after_initialize'
/vagrant/discourse/config/application.rb:307:in `each'
/vagrant/discourse/config/application.rb:307:in `block in <class:Application>'

```

Of course database not exists! That’s why I trying to create it. I don’t understand…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 2, 2019, 11:29pm UTC](https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022/2 "2019-10-02T23:29:15Z")

</div>

Try:

```plaintext
bundle exec rake db:create
bundle exec rake db:migrate

```

You have no local database.

---

<div class="post-metadata">

### Author: ![daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel/32/172786_2.png) [@daniel](https://meta.discourse.org/u/daniel)
#### Post date: [October 3, 2019, 12:00pm UTC](https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022/3 "2019-10-03T12:00:55Z")

</div>

I see the same problem. It was caused by some recent changes to use rails zeitwerk. I’m looking into fixing this.

In the meantime, you can do:

`$ createdb discourse_development`

instead.

---

<div class="post-metadata">

### Author: ![daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel/32/172786_2.png) [@daniel](https://meta.discourse.org/u/daniel)
#### Post date: [October 8, 2019, 11:46am UTC](https://meta.discourse.org/t/database-discourse-development-does-not-exist/130022/4 "2019-10-08T11:46:24Z")

</div>

This is now fixed. I’m sorry for any inconvenience.
