Yes, i've created a user and granted the user some rights.
On 21 Apr, 12:48, Anatoliy <anatoliy.la...@gmail.com> wrote:
> Do you create user and grant rights to him in MySQL?
>
> On Apr 21, 1:58 pm, 83nini <83n...@gmail.com> wrote:
>
>
>
> > Hi guys,
>
> > I'm new to django and trying to learn. I'm trying to connect django to
> > mysql database which i've created, so what i did is that i modified
> > the settings.py file to the following:
>
> > DATABASE_ENGINE = 'mysql'
> > DATABASE_NAME = 'something'
> > DATABASE_USER = 'myusername'
> > DATABASE_PASSWORD = 'somepassword'
> > DATABASE_HOST = 'localhost'
> > DATABASE_PORT = '3306'
>
> > and when i try to connect to django server i get the following error:
>
> > _mysql_exceptions.PerationalError: (1045, "Access denied for user
> > 'myusername'@'localhost' (using password: YES)")
>
> > i'm using windows vista, django 1, python 2.5, and mysql server 5.0.
>
> > any idea why i'm getting this and how do i fix it?
>
> > thanks in advance,
> > cheers- Dölj citerad text -
>
> - Visa citerad text -
--~--~---------~--~----~------------~-------~--~----~
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
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---