is there a way to modify the database settings other than settings_local.py.

I have the following in settings_local.py:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '****',
        'USER': '****',
        'PASSWORD': '****',
        'HOST': 'localhost',
        'PORT': '3306',
    }
}

It tries to connect to the database using '/tmp/mysql.sock' as the socket but my mysql socket is located at '/opt/bitnami/mysql/tmp/mysql.sock'. Is there a work around for this?

Any suggestions will be appreciated.

Thanks

asked 15 Aug '11, 14:35

kalamhavij's gravatar image

kalamhavij
1615
accept rate: 0%

edited 15 Aug '11, 14:49

rickross's gravatar image

rickross ♦♦
12.5k2914972

1

@kalamhavij, please make sure your postings have a clear, specific question in their title. I edited this one, and I removed the lengthy Apache log output. Use a pastebin is you need to share such logs.

(15 Aug '11, 14:50) rickross ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×62

Asked: 15 Aug '11, 14:35

Seen: 221 times

Last updated: 15 Aug '11, 14:50

powered by OSQA