# Connection to database could not be established:

**URL:** <https://discourse.cakephp.org/t/connection-to-database-could-not-be-established/2853>\
**Category:** Need Help\
**Created:** [July 8, 2017, 6:37am UTC](https://discourse.cakephp.org/t/connection-to-database-could-not-be-established/2853 "2017-07-08T06:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saketadhau](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@saketadhau](https://discourse.cakephp.org/u/saketadhau)\
**Post date:** [July 8, 2017, 6:37am UTC](https://discourse.cakephp.org/t/connection-to-database-could-not-be-established/2853/1 "2017-07-08T06:37:06Z")

</div>

While testing of the server and created project, the cakephp is not able to connect to the database. I have modified the app.php file but no results. please help.

> Blockquote

Database

CakePHP is NOT able to connect to the database.  
Connection to database could not be established: SQLSTATE[HY000] [1044] Access denied for user ‘’@‘localhost’ to database ‘sshsdb’

> Blockquote

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [July 8, 2017, 3:52pm UTC](https://discourse.cakephp.org/t/connection-to-database-could-not-be-established/2853/2 "2017-07-08T15:52:07Z")

</div>

you did not defined the sql username
