# Createdb: error: database creation failed: ERROR: database "discourse" already exists

**URL:** <https://meta.discourse.org/t/createdb-error-database-creation-failed-error-database-discourse-already-exists/267614>\
**Category:** Self-hosting\
**Created:** [June 8, 2023, 2:38am UTC](https://meta.discourse.org/t/createdb-error-database-creation-failed-error-database-discourse-already-exists/267614 "2023-06-08T02:38:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [June 8, 2023, 10:15am UTC](https://meta.discourse.org/t/createdb-error-database-creation-failed-error-database-discourse-already-exists/267614/2 "2023-06-08T10:15:41Z")

</div>

That’s strange. I don’t see how that could happen, as such an error should get caught when the code was committed. You might just try to rebuild again.

I see that you have the #unsupported-install tag chosen, but this looks like a [standard install](https://meta.discourse.org/t/142537?silent=true) to me.

---

_[View the full topic](https://meta.discourse.org/t/createdb-error-database-creation-failed-error-database-discourse-already-exists/267614)._
