pycharm connect to mysql

1、download mysql installer community 5.7.20

https://dev.mysql.com/downloads/file/?id=473605

or

链接:http://pan.baidu.com/s/1nvA8rDf 密码:tj1p

2、install teach blog(search yourself)

http://jingyan.baidu.com/article/7e440953d6f0702fc1e2ef61.html

you can install by default or custom but the better install connector/c connector/python and connector/j

3、install MySQL-python for python to connect to mysql

if you meet the error "cant't open config-win.h" see it at bellow

http://www.cnblogs.com/vickey-wu/p/7788529.html

4、connect to mysql in pycharm

https://www.jetbrains.com/help/pycharm/managing-data-sources.html

原文地址:https://www.cnblogs.com/vickey-wu/p/7790052.html