Django>=3.2 对 MySQL 做了什么改变。我没有更改我的数据库凭据。
凭证工作
尝试通过旧凭据连接
mysql --user=user -p
并且原始密码有效。
Django 管理命令工作...
python manage.py runserver
和
python manage.py shell_plus
作品。
...除了dbshell
python manage.py dbshell
返回
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.
问题...
发生了什么变化?为什么 dbshell 不起作用?