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

webserver中main文件中数据库密码和名称已改,但点击登录或者注册时还是Assertion `sql' failed. #99

Open
buxiugangpener opened this issue Jan 10, 2024 · 4 comments

Comments

@buxiugangpener
Copy link

b8cfef99f75a4e6510ad04d5c0ccd8b
求大佬解答。

@buxiugangpener buxiugangpener changed the title main文件中数据库密码和名称已改,但还是Assertion `sql' failed. webserver中main文件中数据库密码和名称已改,但还是Assertion `sql' failed. Jan 10, 2024
@buxiugangpener buxiugangpener changed the title webserver中main文件中数据库密码和名称已改,但还是Assertion `sql' failed. webserver中main文件中数据库密码和名称已改,但点击登录或者注册时还是Assertion `sql' failed. Jan 10, 2024
@buxiugangpener
Copy link
Author

环境:centos7/g++8/mysql8

@buxiugangpener
Copy link
Author

已解决。
问题原因为:数据库没连上。
仅仅通过命令行修改用户密码,不可以完成实际账户密码的修改。
解决方案:通过修改mysql的配置文件,进行账户密码的修改和生效。
**参考连接如下:**https://blog.csdn.net/weixin_47156401/article/details/121087961

@1900100209
Copy link

已解决。 问题原因为:数据库没连上。 仅仅通过命令行修改用户密码,不可以完成实际账户密码的修改。 解决方案:通过修改mysql的配置文件,进行账户密码的修改和生效。 **参考连接如下:**https://blog.csdn.net/weixin_47156401/article/details/121087961

你这是你的数据库没配好,一般安装完mysql之后,先使用自动生成的密码进去,然后再修改密码就行了

@1900100209
Copy link

已解决。 问题原因为:数据库没连上。 仅仅通过命令行修改用户密码,不可以完成实际账户密码的修改。 解决方案:通过修改mysql的配置文件,进行账户密码的修改和生效。 **参考连接如下:**https://blog.csdn.net/weixin_47156401/article/details/121087961

进去之后也是通过mysql的set password = password(xxx'),进行修改密码,怎么能说命令行没用呢

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

2 participants