1.添加mysql数据源

Superset配置mysql数据源-LMLPHP

测试连接的时候遇到

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

Superset配置mysql数据源-LMLPHP

05-11 14:59