Fixed #12343 -- Added support for connection-by-socket to MySQL using the dbshell management command. Thanks to elyon001@gmail.com for the report, and sfllaw for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
120070ed47
commit
1b7fcf4758
|
@ -24,6 +24,9 @@ class DatabaseClient(BaseDatabaseClient):
|
||||||
if passwd:
|
if passwd:
|
||||||
args += ["--password=%s" % passwd]
|
args += ["--password=%s" % passwd]
|
||||||
if host:
|
if host:
|
||||||
|
if '/' in host:
|
||||||
|
args += ["--socket=%s" % host]
|
||||||
|
else:
|
||||||
args += ["--host=%s" % host]
|
args += ["--host=%s" % host]
|
||||||
if port:
|
if port:
|
||||||
args += ["--port=%s" % port]
|
args += ["--port=%s" % port]
|
||||||
|
|
Loading…
Reference in New Issue