| 9 | | |
| 10 | | **Steps to reproduce:** |
| 11 | | |
| 12 | | - create a new django project, set env |
| 13 | | - choose mysql as db back-end |
| 14 | | - specify db setting as following (ref: [https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-DATABASES]) |
| 15 | | |
| 16 | | {{{ |
| 17 | | # use actual db username, password etc |
| 18 | | DATABASES = { |
| 19 | | 'default': { |
| 20 | | 'ENGINE': 'django.db.backends.mysql', |
| 21 | | 'NAME': 'mydatabase', |
| 22 | | 'USER': 'mydatabaseuser', |
| 23 | | 'PASSWORD': 'mypassword', |
| 24 | | 'HOST': '127.0.0.1', |
| 25 | | 'PORT': '5432', |
| 26 | | } |
| 27 | | } |
| 28 | | }}} |
| 29 | | |
| 30 | | - Open a terminal and activate respective environment |
| 31 | | - run: ''python manage.py dbshell'' |
| 32 | | - You should get following error: **Access denied for user 'mydatabaseuser'@'localhost' (using password: NO)** |