Skip to content

chore: upgrading to mysql2 - fixing caching_sha2_password issues#10335

Open
nathanfallet wants to merge 3 commits intocube-js:masterfrom
nathanfallet:chore/upgrade-mysql-driver
Open

chore: upgrading to mysql2 - fixing caching_sha2_password issues#10335
nathanfallet wants to merge 3 commits intocube-js:masterfrom
nathanfallet:chore/upgrade-mysql-driver

Conversation

@nathanfallet
Copy link

@nathanfallet nathanfallet commented Jan 23, 2026

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

Fixes #3525

Also see https://stackoverflow.com/questions/50373427/node-js-cant-authenticate-to-mysql-8-0/50377944

Description of Changes Made (if issue reference is not provided)

Upgrading to mysql2 to fix the mentioned issue

@nathanfallet nathanfallet requested review from a team as code owners January 23, 2026 16:03
@github-actions github-actions bot added driver:mysql Issues relating to the MySQL/MariaDB driver javascript Pull requests that update Javascript code data source driver pr:community Contribution from Cube.js community members. labels Jan 23, 2026
@nathanfallet nathanfallet changed the title upgrading to mysql2 chore: upgrading to mysql2 - fixing caching_sha2_password issues Jan 23, 2026
# Conflicts:
#	packages/cubejs-mysql-driver/package.json
#	packages/cubejs-mysql-driver/src/MySqlDriver.ts
@nathanfallet
Copy link
Author

Hello @igorlukanin @ovr, I just update the PR to be up to date with master (resolving merge conflicts, hope that helps).

Any idea when this could be reviewed, merged and released? This is a critical issue preventing connection to some recent MySQL servers (if you don't have control over the instance and cannot use the legacy plugin, which by the way is way less secure than the current default one; see linked issue for full details)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data source driver driver:mysql Issues relating to the MySQL/MariaDB driver javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

I can't connect to MySQL 8 - ER_NOT_SUPPORTED_AUTH_MODE

2 participants