markparticle / WebServer

C++ Linux WebServer服务器
Apache License 2.0
3.58k stars 733 forks source link

在注册用户时输入账号密码,点击确认,数据库连接出现错误,请问是啥原因 #84

Open incrisp opened 1 year ago

incrisp commented 1 year ago

QQ截图20230509212210 QQ截图20230509212754

yy2511 commented 1 year ago

哥们儿,我想问一下,怎么才能在vscode上跑这个代码啊?我现在只是用vscode连接虚拟机看代码,每次运行代码还有调试都是在虚拟机上弄得,挺麻烦的。

CYiFei commented 1 year ago

哥们儿你怎么到这个界面的,我直接http://ip:port到不了这个界面提示File NotFound!

incrisp commented 1 year ago

@yy2511 0 1

incrisp commented 1 year ago

@CYiFei 可能有电脑防火墙把

yy2511 commented 1 year ago

@yy2511 0 1

感谢,可以了

bigyellowyes commented 1 year ago

请问你解决了吗

incrisp commented 1 year ago

@bigyellowyes 是我傻了,需要创建数据库,并在main.cpp里边更改库名、密码、表名即可

bigyellowyes commented 1 year ago

@bigyellowyes 是我傻了,需要创建数据库,并在main.cpp里边更改库名、密码、表名即可 我也解决了,我是得用sudo运行服务器,一直搞不明白mysql的权限

AylerH commented 1 year ago

请问数据库名为yourdb,改成WebServer server( 1316, 3, 60000, false, / 端口 ET模式 timeoutMs 优雅退出 / 3306, "root", "root", "yourdb", / Mysql配置 ,webserver/ 12, 6, true, 1, 1024); / 连接池数量 线程池数量 日志开关 日志等级 日志异步队列容量 /注册还是报错,为什么呀

shaojilin commented 9 months ago

注意数据库“WebServer"大小写

cgh170932 commented 6 months ago

哥们儿你怎么到这个界面的,我直接http://ip:port到不了这个界面提示File NotFound!

你解决了吗,我也是进去就是not found