# TLS Version is not supported MySQL error

**URL:** <https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422>\
**Category:** New to Julia\
**Tags:** mysql, help-database, database\
**Created:** [July 18, 2022, 6:58pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422 "2022-07-18T18:58:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitch/32/24224_2.png) [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Post date:** [July 18, 2022, 6:58pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/1 "2022-07-18T18:58:59Z")

</div>

Hi everyone,

I have an Azure MySQL Database I’m trying to connect to using:

```julia
DBInterface.connect(MySQL.Connection, host, user, pass, db = dbname);

```

host, user, pass and dbname are string inputs.

I’m receiving the error “TLS Version used does not meet minimal requirements for this server. Please use a higher TLS version and retry.”

It might just be me, but I can’t find any documentation about changing the TLS used for the MySQL package?

Thanks!

---

<div class="post-metadata">

**Author:** ![nikhilk](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nikhilk](https://discourse.julialang.org/u/nikhilk)\
**Post date:** [July 26, 2022, 6:31am UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/2 "2022-07-26T06:31:31Z")

</div>

Hi Mitch, I am facing similar issue for azure mysql. Did you find solution to fix above. Thanks

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [July 26, 2022, 7:38am UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/3 "2022-07-26T07:38:01Z")

</div>

It looks like it is a setting in your Azure control panel you can tweak

“We currently support TLS versions 1.0, 1.1, and 1.2. Setting a minimal TLS version ensures that subsequent, newer TLS versions are supported. We recommend setting the minimal TLS version to 1.2, after testing to confirm your applications support it, because it includes fixes for vulnerabilities found in previous versions. It’s also the highest TLS version supported in Azure Database for MySQL.”

> **[Minimal TLS version setting is now available for Azure Database for MySQL |...](https://azure.microsoft.com/en-us/updates/azure-database-for-mysql-minimal-tls-version/)**
>
> Enforce a minimal transport layer security (TLS) version at the server level that applies to Azure Database for MySQL using the new TLS version setting.

---

<div class="post-metadata">

**Author:** ![Mitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitch/32/24224_2.png) [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Post date:** [July 27, 2022, 3:55pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/4 "2022-07-27T15:55:15Z")

</div>

@lawless-m Thanks for your note, are you saying change the TLS setting to a lower one from 1.2? Changed it to 1.3 and 1.0 and it didn’t work… @nikhilk, unfortunately not.

---

<div class="post-metadata">

**Author:** ![nikhilk](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nikhilk](https://discourse.julialang.org/u/nikhilk)\
**Post date:** [July 27, 2022, 4:06pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/5 "2022-07-27T16:06:14Z")

</div>

I changed it to TLS 1.0 and it worked for me in the azure MySQL.

---

<div class="post-metadata">

**Author:** ![Mitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitch/32/24224_2.png) [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Post date:** [July 28, 2022, 12:23am UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/6 "2022-07-28T00:23:45Z")

</div>

Tried again and it worked!

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [July 28, 2022, 7:07am UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/7 "2022-07-28T07:07:31Z")

</div>

I’m glad that worked out, I didn’t know if it would.

---

<div class="post-metadata">

**Author:** ![Mitch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitch/32/24224_2.png) [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Post date:** [July 28, 2022, 12:05pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422/8 "2022-07-28T12:05:59Z")

</div>

Cheers for your help!
