drogonframework / drogonframework/drogon

连接远程数据库和本地数据库报错

Open
#2,318 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 12h
Merged PRs (30d)
15

Description

版本是使用vcpkg安装的 1.9.10版本, 数据库是MYSQL8.0,使用Navacat连接数据库一切正常。
使用Drogon框架连接数据库报错,

- 当数据库是本地数据库127.0.0.1时,报错:
“Lost connection to server_during query" - MysqlConnection.cc:333

- 当数据库是远程数据库时,报错:
TLS/SSL error: Server certificate validation failed. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. Error 0x800B0109(CERT_E_UNTRUSTEDROOT)" - MysqlConnection.cc:333

同样的数据库和相同的配置信息,Linux版Drogon连接一切正常。
错误截图,我粘在附件中。

![Image](https://github.com/user-attachments/assets/b823be93-e8af-4c14-a284-59fb4ad14195)
![Image](https://github.com/user-attachments/assets/aaa88c20-9540-4b09-8a78-65343bffb5d4)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.