Commit 11e00886 authored by Jérome Perrin's avatar Jérome Perrin

support database connection strings with hostname


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd59fbc9
...@@ -201,6 +201,9 @@ def getMySQLArguments(): ...@@ -201,6 +201,9 @@ def getMySQLArguments():
if not connection_string: if not connection_string:
return '-u test test' return '-u test test'
db, user = connection_string.split() db, user = connection_string.split()
if "@" in db:
db, host = db.split('@')
return "-u %s -h %s %s" % (user, host, db)
return '-u %s %s' % (user, db) return '-u %s %s' % (user, db)
# decorators # decorators
......
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