1. windows配置MongoDB 1.1 安装 MongoDB官网下载,安装时自定义安装路径,其他默认。 假如我们安装到:H:/MongoDB中,完成后进入该目录新建一个data文件夹作为数据库存放路径和log文件夹存放日志文件。 1.2 创建配置 配置文件路径: # windows配置路径需要根据自己的安装路径,例如: windows: `…
# 多行输出结果 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" 1. 连接mongodb import pymongo as pmg # 无权限认证 # client = pmg.M…
# 多行输出结果 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" 1. 连接mysql并创建数据库testdb 官方api: https://pymysql.readthedocs.i…