0

I try to connect mysql to django project Here my settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'django_db',
        'USER': 'root',
        'PASSWORD': 'root',
        'HOST': 'localhost',
        'PORT': 3306,
    }

} enter image description here

  • Please study [link](https://stackoverflow.com/conduct) about how to ask better question. – NEBEZ Jul 02 '22 at 13:22
  • If you put your password blank it may be worked. **'PASSWORD': ' '**, – NEBEZ Jul 02 '22 at 13:24
  • @NEBEZ I erased the password and left the form blank, It still doesn't work, Sorry, first time asking a question – Witaliy Galiy Jul 02 '22 at 14:26
  • https://stackoverflow.com/questions/17975120/access-denied-for-user-rootlocalhost-using-password-yes-no-privileges – NEBEZ Jul 03 '22 at 06:41

1 Answers1

0

Looks like you do not have such user in your database. Please use that command in terminal, while being inside of your app's main folder:

python manage.py createsuperuser
p-wel
  • 26
  • 4