0

Did something change with Django>=3.2 with respect to MySQL. I have not changed my database credentials.

Credentials work

Trying to connect with the old credentials via

mysql --user=user -p

and the original password works.

Django admin commands work...

python manage.py runserver

and

python manage.py shell_plus

works.

...except for dbshell

python manage.py dbshell

returns

ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)
CommandError: "mysql --user=user --host=localhost --default-character-set=utf8mb4 my_project_db" returned non-zero exit status 1.

Question...

What changed? Why does dbshell not work?

Vishal
  • 2,097
  • 6
  • 27
  • 45

0 Answers0