diff --git a/lottery.py b/lottery.py index 1b5f125..46e4f63 100644 --- a/lottery.py +++ b/lottery.py @@ -29,7 +29,7 @@ class Lottery(object): raise Exception("未知的lottery_type") def _get_db_session(self): - _engine = create_engine("mysql+pymysql://root:123456@localhost/lottery?charset=utf8") + _engine = create_engine("mysql+pymysql://test:123456@localhost/lottery?charset=utf8") _DbSession = sessionmaker(bind=_engine) return _DbSession()