0%

python 和 mysql 互动

参考链接

安装 mysql 包

1
pip install mysql-connector

国内因为有那堵墙的存在, 速度会很慢. 代理麻烦又慢. 镜像是个不错的选择.

参考链接

国内几个较大的镜像源

1
2
3
4
5
6
7
8
9
10
11
清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

linux: ~/.pip/pip.conf

win: c:/user/username/pip/pip.ini

添加内容:

1
2
3
4
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

CRUD