Commit 1869a0da authored by Łukasz Nowak's avatar Łukasz Nowak

- support port declaration in connection string


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af3ae2bf
......@@ -235,7 +235,11 @@ def getMySQLArguments():
if "@" in db: # look for hostname
db, host = db.split('@')
host = '-h %s' % host
if ":" in host: # look for port
host, port = host.split(':')
host = '-h %s -P %s' % (host, port)
else:
host = '-h %s' % host
return '-u %s %s %s %s' % (user, password, host, db)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment