mysql - 1045, "Access denied for user ' root' @'localhost'(使用密码 : NO)")

标签 mysql django ubuntu vagrant

我正在使用 xampp 和 vagrant 来运行我的项目,但是每当我尝试进行迁移或运行服务器时,我都会收到此错误

django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")


这是我的连接数据
enter image description here
enter image description here
我正在使用 vagrant 来运行我的项目
完整错误:
enter image description here
那么错误是什么?

最佳答案

如果您从命令行启动它,您可能必须在该命令行中定义 env var(参见 here )

关于mysql - 1045, "Access denied for user ' root' @'localhost'(使用密码 : NO)"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72306900/

相关文章:

java - 为什么在linux下运行时不显示任何帧?

javascript - 如何在 laravel 框架中更新表值而无需表单和 javascript

MySQL 在正确位置添加Where 子句

python - Django : Difference between django-admin. py 和 django-admin

javascript - 如何在javascript中显示django表单对象?

ubuntu - 为什么 Nmap 使用超出范围的源端口号?

ubuntu - 无法在 3.8 内核上编译 Vagrant VirtualBox Guest Additions

php - Symfony 1.4 sfDoctrinePager : How to set custom SQL?

php - 获取表中重复数字值最多的名称

python - Django不会在try except语句中重定向到404