sudo dpkg-reconfigure mysql-server-5.1
Should do the trick and then restart the server (That works on ubuntu).
Also you should consider creating a separate user instead of using root.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Sent from my mobile device
On 2/17/12, Detectedstealth <bruce...@gmail.com> wrote:
Please help with this problem...
Currently installed versions:
Python 2.7.3
MySQL-python package 1.2.3
Django 1.7
I previously used the Django tutorial and successfully used the polling app, using sqlite3. Now I started over with the tutorial and I’m trying to use mysql instead. I created a database called denmain.
As stated in the tutorial, when I perform:
python manage.py migrate
I get this response:
…
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'dennis'@'localhost' (using password: NO)")
Here is my settings.py:
…
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'denmain',
'USER': 'dennis',
'PASSSWORD': 'mypass',
'HOST': '127.0.0.1',
'PORT': '3306',
}
…