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