# Category/Topic export fails with error "database "discourse\_development" does not exist"

**URL:** <https://meta.discourse.org/t/category-topic-export-fails-with-error-database-discourse-development-does-not-exist/42938>\
**Category:** Support\
**Created:** [April 21, 2016, 2:23pm UTC](https://meta.discourse.org/t/category-topic-export-fails-with-error-database-discourse-development-does-not-exist/42938 "2016-04-21T14:23:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Post date:** [April 21, 2016, 2:23pm UTC](https://meta.discourse.org/t/category-topic-export-fails-with-error-database-discourse-development-does-not-exist/42938/1 "2016-04-21T14:23:48Z")

</div>

I am attempting to export a Category from an up-to-date Discourse Docker deployment (v1.6.0.beta1 +14) on Digital Ocean, using the command line tool kindly documented by @neil in [this thread](https://meta.discourse.org/t/topic-and-category-export-import/38930)

I’m following these steps:

- I ssh into the DO Droplet
- `cd /var/discourse`
- execute `./launcher enter app` to enter the Docker container
- `su - discourse` to become the Discourse user
- `cd var/www/discourse`
- `bundle exec script/discourse export_category 15` (I checked beforehand via Rails console that Category id 15 is the one I need)

Unfortunately, it fails with the error  
`FATAL: database "discourse_development" does not exist (ActiveRecord::NoDatabaseError)`

The full stack trace is [here](http://pastebin.com/k6G7XNUj)

Can anyone help? Is this user error on my part or a bug?  
Should I even _have_ a development database in a production docker deploy like mine?  
Is this perhaps because I’m using `./launcher enter app` rather than `./launcher ssh app`?

---

_[View the full topic](https://meta.discourse.org/t/category-topic-export-fails-with-error-database-discourse-development-does-not-exist/42938)._
