网上查找后更正的写法:
engine = create_engine('dialect://username:password@host:port/database')
- dialect – 数据库类型
- username – 数据库用户名
- password – 用户密码
- host --服务器地址
- port – 端口
- database --数据库名称
环境:
- SQLAlchemy 1.2.14
- Python 3.7.3
网上查找后更正的写法:
engine = create_engine('dialect://username:password@host:port/database')
- SQLAlchemy 1.2.14
- Python 3.7.3