# Database user/password hurdle

**URL:** <https://help.nextcloud.com/t/database-user-password-hurdle/25016>\
**Category:** ℹ️ Support\
**Tags:** database\
**Created:** [December 21, 2017, 2:44pm UTC](https://help.nextcloud.com/t/database-user-password-hurdle/25016 "2017-12-21T14:44:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eraserpencil](https://help.nextcloud.com/letter_avatar/eraserpencil/32/5_5575768a8748004e209b776fc1b2916d.png) [@eraserpencil](https://help.nextcloud.com/u/eraserpencil)\
**Post date:** [December 21, 2017, 2:44pm UTC](https://help.nextcloud.com/t/database-user-password-hurdle/25016/1 "2017-12-21T14:44:45Z")

</div>

Nextcloud version _(eg, 10.0.2)_: 12.0.4  
Operating system and version _(eg, Ubuntu 16.04)_: Raspbian Stretch  
Apache or nginx version _(eg, Apache 2.4.25)_: Nginx 1.10.3  
PHP version _(eg, 5.6)_: PHP7.0

The issue you are facing:  
Cant seem to get pass the Installation wizard. Always encountered  
`Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[08006][7] FATAL: password authentication failed for user “postgres” FATAL: password authentication failed for user “postgres”

Here is the inputs for the fields:  
Username: PBJ  
Password: pbjsw  
Data Folder: /var/www/nextcloud/data  
Database user: postgres  
Database password: pbjsw  
Database name: pbj\_cloud  
Database host: localhost:5432

I have a postgres user with ownership to the database name in my postgresql.

Following the instructions from [https://docs.nextcloud.com/server/12/admin\_manual/installation/source\_installation.html](https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html)

"After you enter your root or administrator login for your database, the installer creates a special database user with privileges limited to the Nextcloud database. Then Nextcloud needs only the special Nextcloud database user, and drops the root dB login. This user is named for your Nextcloud admin user, with an oc\_ prefix, and then given a random password. The Nextcloud database user and password are written into config.php:

‘dbuser’ =\> ‘oc\_molly’,  
‘dbpassword’ =\> ‘pX65Ty5DrHQkYPE5HRsDvyFHlZZHcm’, "

I realised the config.php file has already been customied to what I enter and now I cant create a database.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 3:40pm UTC](https://help.nextcloud.com/t/database-user-password-hurdle/25016/2 "2024-12-02T15:40:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:43pm UTC](https://help.nextcloud.com/t/database-user-password-hurdle/25016/3 "2024-12-09T13:43:38Z")

</div>


