Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 连接mysql8.4客户端异常 || [Bug]: Exception when connecting to mysql8.4 client #2640

Closed
wxywizard opened this issue Aug 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@wxywizard
Copy link

wxywizard commented Aug 1, 2024

问题描述 | Describe the bug

连接mysql8.4客户端异常

CleanShot 2024-08-01 at 18 17 48@2x
希望升级下客户端

问题网站 | Website URL

https://togowill.com

服务部署在哪里? | Where your waline deploy?

Self Host

数据存储在哪里?| Where your comment data store?

MySQL


Problem description | Describe the bug

Abnormal connection to mysql8.4 client

CleanShot 2024-08-01 at 18 17 48@2x
Hope to upgrade the client

Question Website | Website URL

https://togowill.com

Where is the service deployed? | Where your waline deploy?

Self Host

Where is the data stored? | Where your comment data store?

MySQL

@wxywizard wxywizard added the bug Something isn't working label Aug 1, 2024
@github-actions github-actions bot changed the title [Bug]: 连接mysql8.4客户端异常 [Bug]: 连接mysql8.4客户端异常 || [Bug]: Exception when connecting to mysql8.4 client Aug 1, 2024
@lizheming
Copy link
Collaborator

#2119

@wxywizard
Copy link
Author

wxywizard commented Aug 1, 2024

#2119
为什么不能更换模块适配mysql8呢? 并且mysql8官方文档说明mysql_native_password这种加密方式已经过时了

下面这个示例不行吗?

npm un mysql && npm i mysql2  

// 导入myslq模块
const mysql = require('mysql2')

#2119
Why can't the module be replaced to adapt to mysql8? And the official documentation of mysql8 states that the encryption method mysql_native_password is obsolete.

Doesn’t the following example work?

npm un mysql && npm i mysql2

//Import the myslq module
const mysql = require('mysql2')

@lizheming
Copy link
Collaborator

lizheming commented Aug 2, 2024

thinkjs/thinkjs#1354 我们使用的底层框架还不支持这块,底层框架使用的场景比较多,不太好贸然更换底层连接器。之后我们按照你的建议处理下。


thinkjs/thinkjs#1354 The underlying framework we use does not support this yet. The underlying framework is used in many scenarios, so it is not easy to replace the underlying connector rashly. Then we will deal with it according to your suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants