SQLSTATE [28000] [1045]访问用户的访问权限; (使用密码:否)在服务器上
这是我的.env代码,
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databasename
DB_USERNAME=username
DB_PASSWORD="thismypass"
我已将数据库与具有所有特权的用户连接。但仍然会出现错误。我还尝试重置密码,甚至创建一个新的数据库,并将其与新用户联系起来。但是没有成功。
你能告诉我我可以做什么以解决我的问题。即使我为用户有密码,我也不知道为什么不说密码。
提前致谢
This is my .env code
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databasename
DB_USERNAME=username
DB_PASSWORD="thismypass"
i have connected the database with the user with all privileges . But still get the error. i also tried reset the password and even create a new database and connect it with new user as well . Yet no success .
can you tell me what i can do next to solve my issue . i don't know why it says no password even though i have password for my user.
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正确的格式
This is the correct format