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