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

修改main.c中的数据库初始化信息 #54

Closed
ztms123 opened this issue Apr 14, 2021 · 2 comments
Closed

修改main.c中的数据库初始化信息 #54

ztms123 opened this issue Apr 14, 2021 · 2 comments

Comments

@ztms123
Copy link

ztms123 commented Apr 14, 2021

修改main.c中的数据库初始化信息一直报错

@CharlesLG7580
Copy link

在虚拟机上可以跑,放到服务器上,centos的mysql永远连不上,总感觉前面数据库那几个信息配置的很有问题

@qinguoyi
Copy link
Owner

如有空,建议贴图看下具体报错。centos下有mysqlclient的报错是/usr/lib下so文件的问题,另外除了数据库配置信息,webserver.cpp下还有数据库的ip信息,localhost改为127.0.0.1即可

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

3 participants