1.添加mysql数据源
测试连接的时候遇到
No module named 'MySQLdb'"
安装mysqlclient
pip install mysqlclient
如果遇到
ERROR: /bin/sh: 1: mysql_config: not found
安装
sudo apt-get install libmysqlclient-dev python3-dev
添加mysql的url
mysql://root:xxxx@localhost/mysql?charset=utf8
测试ok