1,用navicat导出需要生成数据库文档的sql文件;
2,克隆项目,地址:https://github.com/2liang/AutoBuildDocFromDB
3,在python2.7环境下,在项目目录下运行: python build.py sql_dir 其中sql_dir为sql文件路径,如图:
python build.py sql_dir
4,用typora 查看markdown格式文件效果更佳