[Django]-Django mysql error

10👍

Replacing ‘ENGINE’: ‘mysql’ with django.db.backends.mysql` is correct.

Now, you have to change from:

DATABASES = {
    'default': {
        'ENGINE': 'mysql',
        'NAME': 'test',
        'DATABASE_USER': 'root',
        'DATABASE_PASSWORD': 'pass',
    }
}

to:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'test',
        'USER': 'root',
        'PASSWORD': 'pass',
    }
}

Leave a comment