Hi, I have been connecting Django to MySQL using a DATABASE_USER='root' and DATABASE_PASSWORD='' (those are single quotes - empty string) until today. It all worked fine. Today I try to lock down my database by adding a password to the root user. So I type;
$ mysqladmin -u root password "mynewpassword" That works and I must now login to mysql using the password. Then I change settings.py to read DATABASE_PASSWORD='mynewpassword'. Then I type; $ python manage.py dbshell That works. However, when I try typing; $ python manage.py runserver I get can't connect ! Does anyone know what might cause this ? Here is partial trace, if that helps; $ python manage.py runserver Validating models... Unhandled exception in thread started by <function inner_run at 0x4c07b0> ... File "build/bdist.macosx-10.5-i386/egg/MySQLdb/connections.py", line 170, in __init__ _mysql_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 post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---