# Database Connection

**URL:** <https://forum.inductiveautomation.com/t/database-connection/34585>\
**Category:** Ignition\
**Created:** [May 8, 2020, 6:27pm UTC](https://forum.inductiveautomation.com/t/database-connection/34585 "2020-05-08T18:27:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [May 8, 2020, 6:27pm UTC](https://forum.inductiveautomation.com/t/database-connection/34585/1 "2020-05-08T18:27:41Z")

</div>

I made same changes to the administration of database and also restored gateway backup to one of my old backups.  
Now my gateway seems to not liking to connect to database.

```auto
Cannot create PoolableConnectionFactory (Login failed for user 'sa'. ClientConnectionId:9ff73e6a-aeb2-468d-88c0-ee01ffd9fc96)

```

Possible Checks done -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a9bc2430f3adeaf92abc1d34067e4e71d3c01436.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3197e6cba3ec85d237c5c18fb26c85862120265e.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/009c4ca02a5b3b08ed2696b8603cc3400e74a5b7.png)

Any ideas ?

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [May 8, 2020, 6:29pm UTC](https://forum.inductiveautomation.com/t/database-connection/34585/2 "2020-05-08T18:29:53Z")

</div>

Also,

After I restart the server everything works fine but then a while after I get this error -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ee9c9191ffff327d5b80bd15c0713a37ea9952d6.png)
