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

数据库正确的配置,但是提示用户名密码错误,不应该啊? #361

Closed
andyzu opened this issue Feb 25, 2023 · 0 comments
Closed

Comments

@andyzu
Copy link

andyzu commented Feb 25, 2023

image
我在 config/database.php 里【正确】的配置了:
image
mysql的密码:
image
换成 127.0.0.1 也报错。
这个项目的后台管理是 laravel,用的是同样的用户名和密码,都没问题。
而且,我换成 root 的用户名密码也不对 。
而且有个奇怪的现象,我不管 config/database.php 里填写什么用户名,比如我填写了 huaxuechang 这个账户,但是刷新页面,出现的是 :"SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)"
提示是 root@localhost .....
我实在不知道可能会是哪里出现了问题,求大神们给与帮助!

@andyzu andyzu closed this as completed Feb 25, 2023
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