prisma: sslaccept=accept_invalid_certs not working with mysql server 8.0.30
Bug description
After upgrading my MySQL server to 8.0.30, prisma is no longer able to connect.
Error querying the database: Server error:
ERROR 08S01 (1043): Bad handshake'
How to reproduce
- Deploy a MySQL server with version 8.0.30
- Add
?sslaccept=accept_invalid_certsto yourDATABASE_URL
Expected behavior
No response
Prisma information
Environment & setup
- Database: MySQL 8.0.30
- Node.js version: 16.13.0
Prisma Version
prisma : 4.2.1
@prisma/client : 4.2.1
Current platform : darwin
Query Engine (Node-API) : libquery-engine 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/prisma/node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine : migration-engine-cli 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/prisma/node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/prisma/node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary : prisma-fmt 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : 2920a97877e12e055c1333079b8d19cee7f33826
Studio : 0.469.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 20 (8 by maintainers)
@Jolg42 Any intention on fixing this in an upcoming release?
Hi @Jolg42 May I ask if we have any plan to fix this bug?
@janpio thanks for following up, confirmed 4.11 fixes my issue
I can confirm that the prior reproduction from @Jolg42 does not fail any more with
prisma@4.11.0-dev.51(but did withprisma@4.10.1).So this should now be fixed in our
devversion which you can install vianpm install prisma@dev @prisma/client@dev. Regenerate your Prisma Client and try again - and it should work. Would be very helpful if some of you could confirm this is indeed working now. Thanks!+1
Same problem here with ?sslaccept=strict after creating a database on Azure and trying to connect, did exactly the same last week without trouble.
The connexion work with mysql cli
And I was able to restore data from the database, sounds more like a prisma issue no ?
Might be related: https://github.com/prisma/prisma/issues/15641 Same error, same MySQL version, and also trying to connect via SSL (with custom cert however).