pass mysql port
This commit is contained in:
parent
915bcf1dca
commit
76dbd88114
|
@ -46,8 +46,9 @@ class NodeOps(object):
|
||||||
def __init__(self, db_uri):
|
def __init__(self, db_uri):
|
||||||
uri = urlparse(db_uri)
|
uri = urlparse(db_uri)
|
||||||
|
|
||||||
self.mysql = MySQLAdapter(host=uri.hostname, user=uri.username, passwd=uri.password, db=uri.path[1:],
|
self.mysql = MySQLAdapter(host=uri.hostname, port=uri.port,
|
||||||
options=Options(keep_history=False))
|
user=uri.username, passwd=uri.password,
|
||||||
|
db=uri.path[1:], options=Options(keep_history=False))
|
||||||
self.storage = RelStorage(adapter=self.mysql)
|
self.storage = RelStorage(adapter=self.mysql)
|
||||||
self.db = ZODB.DB(self.storage)
|
self.db = ZODB.DB(self.storage)
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -4,7 +4,7 @@ from setuptools import setup
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
__version__ = "0.0.3"
|
__version__ = "0.0.4"
|
||||||
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
|
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("-")]
|
__requirements__ = [line.strip() for line in f.readlines() if not line.startswith("-")]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue