I changed my settings.py file like this: 'cdraccess': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'portal2', 'USER': 'cdraccess', 'HOST': '127.0.0.1', 'CONN_MAX_AGE': 0, 'PASSWORD': 'mydbpass', },
And the error message I get is: (1045, u"Access denied for user 'cdraccess'@'localhost' (using password: YES)") Then I changed it to: 'cdraccess': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'portal2', 'USER': 'cdraccess', 'HOST': 'my_host_name', 'CONN_MAX_AGE': 0, 'PASSWORD': 'mydbpass', }, And I get the usual error message: (1045, u"Access denied for user 'cdraccess'@'77.95.177.35' (using password: NO)") I have print statements and everything looks correct. It is printed as it is in the settings.py file. One thing I noticed is that the IP 77.95.177.35 is my machine's IP, NOT the host's IP. For some reason the host IP (as it is given in the settings.py file) is replaced in this error message by my machine's IP. Is that normal? The command: *mysql --host=[my_host_name] --user=cdraccess -p portal2* works fine. The host can be given as an IP or like "host_name.net". It works fine in both ways. -- 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/546914c2-070c-4309-b42e-5d1454bb3947%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.