# Keycloak 10.0.X and 11.0.0 fails to connect to the database

**URL:** <https://forum.keycloak.org/t/keycloak-10-0-x-and-11-0-0-fails-to-connect-to-the-database/3917>\
**Category:** Configuring the server\
**Tags:** database, upgrading\
**Created:** [July 22, 2020, 9:47pm UTC](https://forum.keycloak.org/t/keycloak-10-0-x-and-11-0-0-fails-to-connect-to-the-database/3917 "2020-07-22T21:47:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vikas027](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vikas027/32/1102_2.png) [@vikas027](https://forum.keycloak.org/u/vikas027)\
**Post date:** [July 24, 2020, 9:23am UTC](https://forum.keycloak.org/t/keycloak-10-0-x-and-11-0-0-fails-to-connect-to-the-database/3917/3 "2020-07-24T09:23:44Z")

</div>

> [@danielnickels](#):
>
> JDBC\_PARAMS to “enabledTLSProtocols=TLSv1.2” which ‘fixed’ it for us.

Thanks @danielnickels. Unfortunately, it has not worked for me. I have used these environment variables in vain.

```bash
JDBC_PARAMS=enabledTLSProtocols=TLSv1.0
JDBC_PARAMS='enabledTLSProtocols=TLSv1.1
JDBC_PARAMS='enabledTLSProtocols=TLSv1.2 

```

The only value which has worked for me is but this is not good in an enterprise environment

```auto
JDBC_PARAMS=useSSL=false

```

Regards,  
Vikas

---

_[View the full topic](https://forum.keycloak.org/t/keycloak-10-0-x-and-11-0-0-fails-to-connect-to-the-database/3917)._
