sslaccept=accept_invalid_certs not working with mysql server 8.0.30
See original GitHub issueBug 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_certs
to 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
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Changes in MySQL 8.0.30 (2022-07-26, General Availability)
This release fixes such issues by adding language-specific collations ... It is now possible to compile the MySQL server package (mysqld + ...
Read more >2.10.2.1 Troubleshooting Problems Starting the MySQL Server
Check the error log to see why the server does not start. Log files are located in the data directory (typically C:\Program Files\MySQL\MySQL...
Read more >B.3.2.2 Can't connect to [local] MySQL server
If you do not give a host name when connecting to mysqld, a MySQL client first tries to connect to the named pipe....
Read more >2 Server Error Message Reference - MySQL :: Developer Zone
Occurs for failure to create or copy a file needed for some operation. Possible causes: Permissions problem for source file; destination file already...
Read more >Changes in MySQL 8.0.31 (2022-10-11, General Availability)
Now such a reference to a derived table is accepted within VALUES . In both cases, we fix the problem by making sure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
Someone who knows quaint / mysql in Prisma engines could have a look here
We use a fork of mysql_async with the vendored-openssl feature/branch in https://github.com/prisma/quaint/blob/main/Cargo.toml
The fork https://github.com/prisma/mysql_async/tree/vendored-openssl
Interesting PR to look at https://github.com/blackbeam/mysql_async/pull/209