mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[PR #3991] [MERGED] swap mysql library and knex client for mysql2 #3786
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#3786
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3991
Author: @nlynzaad
Created: 9/10/2024
Status: ✅ Merged
Merged: 10/11/2024
Merged by: @jc21
Base:
develop← Head:develop_mysql2📝 Commits (1)
48a9f5fswop mysql library and knex client for mysql2📊 Changes
5 files changed (+73 additions, -24 deletions)
View changed files
📝
backend/config/default.json(+1 -1)📝
backend/knexfile.js(+2 -2)📝
backend/lib/config.js(+1 -1)📝
backend/package.json(+1 -1)📝
backend/yarn.lock(+68 -19)📄 Description
Since MySQL 9 the use of the native_password plugin is no longer supported and caching_sha2_password is now required.
Currently npm makes use of the mysql library. This library unfortunately does not support the caching_sha2_password authentication method.
mysql2 supports the new caching_sha2_password methods and "is mostly API compatible with Node MySQL and supports majority of features"
This PR changes the mysql library for mysql 2 and updates the knex configs to use mysql2. This closes issue #3287
Basic tests against a new and existing npm database (updated to mysql 9) worked flawlessly.
I might be doing something wrong, but I was not able to get the scripts/test_dev.sh to run as it was seeking a taskfile in the dev container.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.