pass mysql port

This commit is contained in:
dave 2019-06-03 21:19:23 -07:00
parent 915bcf1dca
commit 76dbd88114
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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("-")]