Skip to content

Commit 53e5230

Browse files
committed
Turns out AllowPublicKeyRetrieval=True is _very_ important.
1 parent 8b6d7a5 commit 53e5230

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ services:
104104
myapp:
105105
image: myapp:latest
106106
environment:
107-
ConnectionStrings__DefaultConnection: "Server=mysql-auto-db-proxy;Port=3308;Database=myapp;User Id=root;Password=password;SslMode=none;"
107+
ConnectionStrings__DefaultConnection: "Server=mysql-auto-db-proxy;Port=3308;Database=myapp;User Id=root;Password=password;SslMode=none;AllowPublicKeyRetrieval=true;"
108108
depends_on:
109109
- mysql-auto-db-proxy
110110
networks:
@@ -129,7 +129,7 @@ The MySQL Auto DB Proxy is fully compatible with Entity Framework Core and suppo
129129
130130
```csharp
131131
// In appsettings.json or environment variable
132-
"ConnectionStrings__DefaultConnection": "Server=mysql-auto-db-proxy;Port=3308;Database=myapp;User Id=root;Password=password;SslMode=none;"
132+
"ConnectionStrings__DefaultConnection": "Server=mysql-auto-db-proxy;Port=3308;Database=myapp;User Id=root;Password=password;SslMode=none;AllowPublicKeyRetrieval=true;"
133133
```
134134
135135
### Important Connection String Parameters
@@ -142,6 +142,7 @@ The MySQL Auto DB Proxy is fully compatible with Entity Framework Core and suppo
142142
| `User Id` | `root` | MySQL username |
143143
| `Password` | `your_password` | MySQL password |
144144
| `SslMode` | `none` | **Required** - SSL must be disabled |
145+
| `AllowPublicKeyRetrieval` | `true` | **Required** - Allows client to request public key from server |
145146

146147
### Automatic Database Creation
147148

0 commit comments

Comments
 (0)