- 现有数据需要入库,数据库为SQL Server,需要使用python3连接数据库并入库数据。所以使用pyodbc连接数据库。
- Linux查看版本当前操作系统发行版信息
[root@localhost ShiChen]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
- 确定版本安装odbc驱动(链接)
sudo su
#Download appropriate package for the OS version
#Choose only ONE of the following, corresponding to your OS version
#RedHat Enterprise Server 6
curl https://packages.microsoft.com/config/rhel/6/prod.repo > /etc/yum.repos