简体   繁体   中英

1045, "Access denied for user 'root'@'localhost' (using password: NO)")

i'm using xampp and vagrant to run my project but whenever i try to makemigration or run the server i got this error

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

here's my connection data

在此处输入图像描述

在此处输入图像描述

and i'm using vagrant to run my project

full error:

在此处输入图像描述 so what's the error?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM