question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sslaccept=accept_invalid_certs not working with mysql server 8.0.30

See original GitHub issue

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

  1. Deploy a MySQL server with version 8.0.30
  2. Add ?sslaccept=accept_invalid_certs to your DATABASE_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:open
  • Created a year ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
P4sca1commented, Nov 4, 2022

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).

0reactions
Jolg42commented, Dec 22, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found