matrixorigin / moc-docs

0 stars 6 forks source link

SQLAlchemy基础示例中,create_engine是否需要解决moc用户名中带引号的问题 #139

Open WuMenglong opened 1 year ago

WuMenglong commented 1 year ago

在https://docs.matrixorigin.cn/zh/matrixonecloud/MatrixOne-Cloud/App-Develop/Tutorial/sqlalchemy-python-crud-demo/页面的SQLAlchemy 基础示例中,python连接mysql的示例为:

# mysql+pymysql://用户名:密码@服务器地址:6001/数据库名
engine = create_engine('mysql+pymysql://root:111@127.0.0.1:6001/test')

MOC中的完整用户名内也有英文引号,不确定这是否会冲突

dengn commented 1 year ago

把例子整个更新一下吧,把用户名密码和ip都改成moc的格式。@WuMenglong

Jhonust commented 8 months ago

Indeed, addressing quotes in the mock username when using SQLAlchemy's create_engine function is crucial for proper functionality. Handling special characters or picsart apk quotes ensures seamless execution of database operations without encountering errors. It's an essential consideration to ensure smooth integration and optimal performance. Thanks for bringing attention to this important detail.