diff --git a/nodepupper/nodeops.py b/nodepupper/nodeops.py index 9b047fd..614f9bb 100644 --- a/nodepupper/nodeops.py +++ b/nodepupper/nodeops.py @@ -46,8 +46,9 @@ class NodeOps(object): def __init__(self, db_uri): uri = urlparse(db_uri) - self.mysql = MySQLAdapter(host=uri.hostname, user=uri.username, passwd=uri.password, db=uri.path[1:], - options=Options(keep_history=False)) + self.mysql = MySQLAdapter(host=uri.hostname, port=uri.port, + user=uri.username, passwd=uri.password, + db=uri.path[1:], options=Options(keep_history=False)) self.storage = RelStorage(adapter=self.mysql) self.db = ZODB.DB(self.storage) diff --git a/setup.py b/setup.py index fd5f026..62a921e 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup import os -__version__ = "0.0.3" +__version__ = "0.0.4" with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f: __requirements__ = [line.strip() for line in f.readlines() if not line.startswith("-")]