hello Carsten Fuchs, thanks for your feedback. yes, i agree. but what i dont understand is that the command used "python manage.py migrate" is to creat a db for me in mysql instead of sqlite and the error is talking about authentication. these are the changes made in my djangoproject/settings file: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'djangoproject', 'USER': 'root', 'PASSWORD': '123456', 'HOST': "localhost", 'PORT': '' } } i'm confuse now.
On Saturday, February 2, 2019 at 1:11:38 AM UTC-8, Carsten Fuchs wrote: > Hi Emmanuel, > > the error message is clear, isn't it? > (1045, "Access denied for user 'root'@'localhost' (using password: YES)") > > Check your password. Use the mysql client to check. > > Best regards, > Carsten > > > Am 02.02.19 um 10:07 schrieb Emmanuel klutse: > > hello team, > > Can someone help me with the problem below please. > > (py1) C:\djangoproject>python manage.py migrate > > Traceback (most recent call last): > > File > "C:\Users\Success\Envs\py1\lib\site-packages\django\db\backends\base\base.py", > > line 216, in ensure_connection > > self.connect() > > File > "C:\Users\Success\Envs\py1\lib\site-packages\django\db\backends\base\base.py", > > line 194, in connect > > self.connection = self.get_new_connection(conn_params) > > File > "C:\Users\Success\Envs\py1\lib\site-packages\django\db\backends\mysql\base.py", > > line 227, in get_new_connection > > return Database.connect(**conn_params) > > File > "C:\Users\Success\Envs\py1\lib\site-packages\MySQLdb\__init__.py", line 84, > in Connect > > return Connection(*args, **kwargs) > > File > "C:\Users\Success\Envs\py1\lib\site-packages\MySQLdb\connections.py", line > 164, in __init__ > > super(Connection, self).__init__(*args, **kwargs2) > > MySQLdb._exceptions.OperationalError: (1045, "Access denied for user > 'root'@'localhost' (using password: YES)") > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8f32999b-3296-4043-a5c5-b4315eae9527%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.