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

wiki下的数据库环境 #1995

Open
Stew0316 opened this issue Apr 14, 2024 · 0 comments
Open

wiki下的数据库环境 #1995

Stew0316 opened this issue Apr 14, 2024 · 0 comments

Comments

@Stew0316
Copy link

Stew0316 commented Apr 14, 2024

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,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant