Home  >  Q&A  >  body text

1045, "Access denied: user 'root'@'localhost' (no password used)"

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

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

This is my connection data

I am using vagrant to run my project

Full error:

So what is the error?

P粉014293738P粉014293738206 days ago352

reply all(1)I'll reply

  • P粉329425839

    P粉3294258392024-03-27 11:09:58

    If you launch it from the command line, you may have to define environment variables in that command line (see here)

    reply
    0
  • Cancelreply