我正在使用 xampp 和 vagrant 来运行我的项目,但是每当我尝试进行迁移或运行服务器时,我都会收到此错误
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
这是我的连接数据
我正在使用 vagrant 来运行我的项目
完整错误:
那么错误是什么?
最佳答案
如果您从命令行启动它,您可能必须在该命令行中定义 env var(参见 here )
关于mysql - 1045, "Access denied for user ' root' @'localhost'(使用密码 : NO)"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72306900/