# Create DB and Users at start

**URL:** https://forums.percona.com/t/create-db-and-users-at-start/23360
**Category:** Percona Distribution for PostgreSQL
**Tags:** percona, postgres, closed-no-reply
**Created:** [July 4, 2023, 2:31pm UTC](https://forums.percona.com/t/create-db-and-users-at-start/23360 "2023-07-04T14:31:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Satheesh\_Kumar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/satheesh_kumar/32/11357_2.png) [@Satheesh\_Kumar](https://forums.percona.com/u/Satheesh_Kumar)
#### Post date: [July 4, 2023, 2:31pm UTC](https://forums.percona.com/t/create-db-and-users-at-start/23360/1 "2023-07-04T14:31:38Z")

</div>

Hi

I am using pg-db and pg-operator and installing using helm but what i want is i need to create few database and users at start

I saw the options in values.yaml

users:

- name: pg  
databases:
  - zoo  
options: “SUPERUSER”  
password:  
type: ASCII  
secretName: “rhino-credentials”

databaseInitSQL:  
key: init.sql  
name: cluster1-init-sql

But it is not working

Guide me the correct way to create database and users at start

---

<div class="post-metadata">

### Author: ![Elad\_Avikzer](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/elad_avikzer/32/20441_2.png) [@Elad\_Avikzer](https://forums.percona.com/u/Elad_Avikzer)
#### Post date: [May 20, 2025, 1:58pm UTC](https://forums.percona.com/t/create-db-and-users-at-start/23360/2 "2025-05-20T13:58:07Z")

</div>

Hi  
I’m facing the same problem, configured it according to the docs.  
added the CM but it seems that nothing happens, checked for logs with stern to be sure not to miss anything.

did you find any solution for it ?
