Following a tutorial on youtube on how to set up and use the DjangoFramework. Tried running python manage.py migrate but I ran into this error and I'm unable to figure out a solution to it. Using mysqlclient and running on a virtual environment and on MACOS
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
I don't know if this would be the issue, but I created a database on using the myphpadmin on http://localhost:8080/phpmyadmin/. localhost/phpmyadmin does not work.
The code for DATABASES in settings.py is as follows :
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'djangoproject', 'USER' : 'root', 'PASSWORD' : 'rootpassword', 'HOST': 'localhost', 'PORT' : '' , } }
3306.djangoprojectin mysql