python 链接mysql和oralcle 数据库。

一、链接mysql数据,需要安装 PyMysql。

  1.下载地址:https://github.com/PyMySQL/PyMySQL 。

   2.安装方式:

    a.解压pymysql安装包。

    b. cd 到 pymysql 目录。

    c.执行 python  setup.py install。

   3.验证安装结果。

    import pymysql ,不报错则是成功。

二、链接oralce ,需要安装cx_Oracle

扫描二维码关注公众号,回复: 6680486 查看本文章

 官网下载地址:https://oracle.github.io/python-cx_Oracle/

猜你喜欢

转载自www.cnblogs.com/jiangzp/p/11108177.html