Skip to content

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

@mrclassfree

Description

@mrclassfree

版本是使用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
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions