# Unable to connect to DB

**URL:** <https://forum.robotframework.org/t/unable-to-connect-to-db/6402>\
**Category:** DatabaseLibrary\
**Created:** [27 October 2023 17:29 UTC](https://forum.robotframework.org/t/unable-to-connect-to-db/6402 "2023-10-27T17:29:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabelov](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@rabelov](https://forum.robotframework.org/u/rabelov)\
**Post date:** [27 October 2023 17:29 UTC](https://forum.robotframework.org/t/unable-to-connect-to-db/6402/1 "2023-10-27T17:29:47Z")

</div>

Please help, I am not able to connect to DB.  
Seams like the issue might be related to SSL.  
Can you please advise how to resolve it?

\*\*\* Settings \*\*\*  
Library DatabaseLibrary  
Library OperatingSystem

Suite Setup Connect To Database pymysql ${DBName} ${DBUser} ${DBPass} ${DBHost} ${DBPort}  
Suite Teardown Disconnect From Database

\*\*\* Variables \*\*\*  
${DBName} dispatch  
${DBUser} user  
${DBPass} pass  
${DBHost} [HostChangedForSecurity.us-east-1.rds.amazonaws.com](http://hostchangedforsecurity.us-east-1.rds.amazonaws.com/)  
${DBPort} 3306

\*\*\* Test Cases \*\*\*  
Check if admin is present in DB  
Check If Exists In Database SELECT name FROM dispatch.admin WHERE id=1355

\*_error I am getting:_  
OperationalError: (3159, ‘Connections using insecure transport are prohibited while --require\_secure\_transport=ON.’)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [28 October 2023 02:26 UTC](https://forum.robotframework.org/t/unable-to-connect-to-db/6402/2 "2023-10-28T02:26:15Z")

</div>

Hi Roman,

I’ve not done this myself, but hopefully this will help,

From a quick look at the documentation I think you’ll need to use [Connect To Database Using Custom Connection String](https://marketsquare.github.io/Robotframework-Database-Library/#Connect%20To%20Database%20Using%20Custom%20Connection%20String) or [Connect To Database Using Custom Params](https://marketsquare.github.io/Robotframework-Database-Library/#Connect%20To%20Database%20Using%20Custom%20Params)

The documentation for [pymysql’s Connection Object](https://pymysql.readthedocs.io/en/latest/modules/connections.html) shows several ssl related paramaters, so you’ll need to see which ones you need.

Hope that helps,

Dave.
