# Got an error creating the test database: database "" already exists

**URL:** <https://forum.djangoproject.com/t/got-an-error-creating-the-test-database-database-already-exists/12654>\
**Category:** Using Django\
**Created:** [March 16, 2022, 7:59pm UTC](https://forum.djangoproject.com/t/got-an-error-creating-the-test-database-database-already-exists/12654 "2022-03-16T19:59:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SALIMA534](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/salima534/32/7813_2.png) [@SALIMA534](https://forum.djangoproject.com/u/SALIMA534)\
**Post date:** [March 16, 2022, 7:59pm UTC](https://forum.djangoproject.com/t/got-an-error-creating-the-test-database-database-already-exists/12654/1 "2022-03-16T19:59:40Z")

</div>

Hi all,

After writing test cases I run test cases I am getting an error below

```auto

Python manage.py behave

```

After running the above command I am getting this error.

```auto
Creating test database for alias 'default'...
Got an error creating the test database: database "test_newDataBase" already exists

Type 'yes' if you would like to try deleting the test database 'test_newDataBase', or 'no' to cancel: yes
Destroying old test database for alias 'default'...
Traceback (most recent call last):
File "C:\Users\USER 1\PycharmProjects\behaveproject\venv\lib\site-packages\django\db\backends\utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "trades_trade_table" does not exist
.....
.....
django.db.utils.ProgrammingError: relation "trades_vk_trade_table" does not exist

```

Please help me to resolve this issue.

Thank you  
~Salima
