# HG changeset patch # User Brian Neal # Date 1420304145 21600 # Node ID c786908b95ca542e1e4e6b57a2ef0385f73d95d7 # Parent 07e4622f7aef2785968d27ecd57467a879172bf5 Use UNIX socket to connect to MySQL. diff -r 07e4622f7aef -r c786908b95ca sg101/settings/local.py --- a/sg101/settings/local.py Sat Dec 27 12:53:22 2014 -0600 +++ b/sg101/settings/local.py Sat Jan 03 10:55:45 2015 -0600 @@ -12,6 +12,9 @@ 'NAME': SECRETS['DB_NAME'], 'USER': SECRETS['DB_USER'], 'PASSWORD': SECRETS['DB_PASSWORD'], + 'OPTIONS': { + 'unix_socket': '/var/run/mysqld/mysqld.sock', + }, }, } diff -r 07e4622f7aef -r c786908b95ca sg101/settings/production.py --- a/sg101/settings/production.py Sat Dec 27 12:53:22 2014 -0600 +++ b/sg101/settings/production.py Sat Jan 03 10:55:45 2015 -0600 @@ -14,6 +14,9 @@ 'NAME': SECRETS['DB_NAME'], 'USER': SECRETS['DB_USER'], 'PASSWORD': SECRETS['DB_PASSWORD'], + 'OPTIONS': { + 'unix_socket': '/var/run/mysqld/mysqld.sock', + }, }, }