Navigation

    MemFireDB论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    小课堂,Python连接这个云服务数据库的教程

    MemFireDB新手区
    1
    1
    17
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MemFireDB Robot last edited by MemFireDB Robot

      教程地址: https://docs.memfiredb.com/posts/example/Python-example.html

      代码地址:https://gitee.com/memfiredb/memfiredb-example-python

      1.下载代码:https://gitee.com/memfiredb/memfiredb-example-python/blob/master/retry_exception_process/main.py
      2. 使用命令行执行
      python main.py ipaddr 5433 dbname dbuser dbpassword

      上述参数需要使用MemFire Cloud平台上创建的云数据库的连接信息替换
      58ec423f-c319-4956-911b-c61a16ec1736-44ef0b3db001019a235dcc3c42122ca.png

      使用python开发,SQLAlchemy最主流,入门教程:
      https://www.datacamp.com/tutorial/sqlalchemy-tutorial-examples

      如果是python刚刚入门,那么使用pgsql直接来写sql会简单一些
      https://www.datacamp.com/tutorial/tutorial-postgresql-python

      1 Reply Last reply Reply Quote 0
      • First post
        Last post