# DB error for Icinga Director

**URL:** <https://community.icinga.com/t/db-error-for-icinga-director/13008>\
**Category:** Icinga Director\
**Tags:** api\
**Created:** [December 1, 2023, 3:14pm UTC](https://community.icinga.com/t/db-error-for-icinga-director/13008 "2023-12-01T15:14:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcontino](https://community.icinga.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@dcontino](https://community.icinga.com/u/dcontino)\
**Post date:** [December 1, 2023, 3:14pm UTC](https://community.icinga.com/t/db-error-for-icinga-director/13008/1 "2023-12-01T15:14:51Z")

</div>

Hello, i installed an Icinga2 on a Debian Bookworm.  
All perfect within i added Director, and ask me which of the two database to use, the IDO database and the icinga2web database.

First i choose for IDO but i received a warning message about the encoding latin1 (he want and utf-8), thus i try to choose the other active db.  
After that, icinga gave me the error in the image, but the user icinga\_user have all privileges granted on both databases.  
Where i have to go for change the database? I try to remove and reinstall director but it’s the same.

Thank you

 ![image](https://community.icinga.com/uploads/default/original/2X/2/2130e1adf1d0ba840c76197869c50cfe4e9bb811.png)

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [December 1, 2023, 5:27pm UTC](https://community.icinga.com/t/db-error-for-icinga-director/13008/2 "2023-12-01T17:27:39Z")

</div>

director wants to create its tables please use a different database for icingadirector not icingaweb2 not ido.  
[https://icinga.com/docs/icinga-director/latest/doc/02-Installation/From-Source/#setting-up-the-database](https://icinga.com/docs/icinga-director/latest/doc/02-Installation/From-Source/#setting-up-the-database)

also you need to create a icingaweb2 resource afterwards which references your director database so its in the list to choose from
