drogonframework / drogonframework/drogon

wiki下的数据库环境

Open
#1,995 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

wsl2环境ubuntu22,win11环境下
ubuntu: sudo apt install libmariadbclient-dev无法安装,如果apt install mysql-server,安装mysql-server成功,此时配置drogon_ctl生成的project里的config.json,并在demo_v1_User.cc的getinfo方法下加入auto clientPtr = drogon::app().getDbClient();代码测试,make之后运行会返回No database is supported by drogon, please install the database development library first
tip:使用windows里的桌面sql可视化软件可以连接的上ubuntu里的mysql
请大佬指正我应该怎么操作来连接mysql,谢谢

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.