Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7958075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:21:51+00:00 2026-06-04T04:21:51+00:00

I have the following settings in my Django application. DATABASES = { ‘default’: {

  • 0

I have the following settings in my Django application.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'mydatabasename',                      # Or path to database file if using sqlite3.
        'USER': 'davidfaux',                      # Not used with sqlite3.
        'PASSWORD': 'mySecretPassword',                  # Not used with sqlite3.
        'HOST': 'sql.externalhost.com',        # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                  # Set to empty string for default. Not used with sqlite3.
    }
}

However, when I use manage.py to run my application, I get the following traceback.

super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'davidfaux'@'75.156.124.202' (using password: YES)")

75.156.124.202 is the IP address for the dedicated server hosting my Django application. However, my database lies on an external server as I specified in settings.py.

Why is Django seeking this database on the dedicated server rather than an external location as I had specified?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:21:51+00:00Added an answer on June 4, 2026 at 4:21 am

    Django isn’t looking for the database on the dedicated server. The returned MySQL error messages means that you are connecting from 75.156.124.202 as you can only allow connections from specific hosts with MySQL.

    This means there is probably some kind of authentication issue, try to connect from your server with a mysql client to sql.externalhost.com and ensure that you can connect to the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my settings.py , I have the following: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # Host for
I have a Spring application deployed in JBoss EAP server, using the following settings:
I have a new Django application I am working on. I have the following
I have following settings URL urlpatterns = patterns('', (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}), url(r'^index/$','pMass.views.index', name='index'),
I have the following django model: RESOURCE_DIR = os.path.join(settings.MEDIA_ROOT, 'resources') class Resource(models.Model): title =
I have the following setup with a fresh installed celery and django 1.4: settings.py:
I have created a sitecollection and in AAM I have made following settings for
I have the following code in settings.py #EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER
If I have a photoshop drop shadow with the following settings Blend Mode -
I have a settings bundle in my iPhone app, with the following PList: Type:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.