ITeye博客

superset 添加rdms数据源

muruiheng · 2019-03-20 09:28 · superset · 开源软件 · Markdown

superset是Python开发的, 在连接rdms数据库之前需要添加对应的软件包,没中数据库对应的软件包如下图

 

软件包

1、添加mysql数据源

 第一步:添加mysql的软件包 使用命令“pip install mysqlclient”

 

 第二步:在控制台添加mysql数据源

 

 

注意:在保存时可能会报错,错误提示:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,

 

解决方式:

修改mysql数据库的编码, 将所有需要连接的mysql数据源编码改为utf8

 

2、添加oracle数据源

首先安装oracle相关的软件包,使用命令"pip install cx_Oracle"

然后按照配置mysql数据源的方式配置oracle数据源信息;

 

测试数据源连接时,报错:

DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: 64-bit Oracle Client library cannot be loaded: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help (Background on this error at: http://sqlalche.me/e/4xp6)

 

解决方式:

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。