# SSL with MYSQL.jl

**URL:** https://discourse.julialang.org/t/ssl-with-mysql-jl/37928
**Category:** General Usage
**Tags:** question, mysql
**Created:** [April 20, 2020, 8:58pm UTC](https://discourse.julialang.org/t/ssl-with-mysql-jl/37928 "2020-04-20T20:58:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![victora](https://avatars.discourse-cdn.com/v4/letter/v/dbc845/32.png) [@victora](https://discourse.julialang.org/u/victora)
#### Post date: [April 20, 2020, 8:58pm UTC](https://discourse.julialang.org/t/ssl-with-mysql-jl/37928/1 "2020-04-20T20:58:31Z")

</div>

Hello everyone - I have been trying unsuccessfully to connect to a mysql db in a jupyter notebook with the following: ( using JuliaPro install )

```julia
# connecting to mysql
using MySQL, DBInterface, Tables, DataFrames
conn = DBInterface.connect(MySQL.Connection,
            "my db host", 
            "username", 
            "password", 
            db = "db_name",
            port=port number, 
            ssl_enforce == TRUE)

```

I am getting an access denied error message if i exclude the “ssl\_enforce” parameter. But if I include it ( like above), I get error messages relating to how its defined. Using a regular database client , I am able to connect only when i set sslmode = require. I read the docs for mysql.jl and it seems to have a parameter in the connection string for ssl\_enforce. But i cant find any example of how to apply that. Will appreciate some help with this.
