I cannot connect with my database remote server mysql django

141 views
Skip to first unread message

tuktuk

unread,
Dec 7, 2014, 9:03:21 AM12/7/14
to django...@googlegroups.com

I am running my django Application in local mode, and my database server is in a remote server with cpanel. Configurations in settings.py are:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', 
        'NAME': 'tim_farmaapp',                      
        'USER': 'tim_farmaapp',
        'PASSWORD': 'mypass_123_',
        'HOST': 'stevie.heliohost.org',                     
        'PORT': '3306',                      
    }
}

But when i make syncdb i get this error:

OperationalError: (1045, "Access denied for user 'tim_farmaapp'@'31.44.78.126' (using password: YES)")
How can i fix this issue/error ? Thanks to all !

rush

unread,
Dec 7, 2014, 9:28:49 AM12/7/14
to django...@googlegroups.com, tuktuk
Just put correct password into settings. That will fix the error.
 
--
wbr,
rush.
 
 
 
07.12.2014, 17:11, "tuktuk" <gewinn...@gmail.com>:
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9f74486-e480-4e6c-a362-5a7b68b77202%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Collin Anderson

unread,
Dec 9, 2014, 8:50:32 AM12/9/14
to django...@googlegroups.com, gewinn...@gmail.com, dja...@irush.su
Hi,

Also, make sure that the remote server allows for remote connections to your database using your username.

Collin
Reply all
Reply to author
Forward
0 new messages