连接到数据库时出错:"Invalid Datasource"

Error while connecting to a database: "Invalid Datasource"

我正在使用 Pentaho Report Designer 5.2。在尝试使用 JNDI 连接到 MySQL 数据库时,我遇到了一个错误 Invalid data source:'openflights' 但是我的数据库中存在 table "openflights"。

我们将不胜感激。谢谢!

这是 JNDI 配置

#MySQL - openflights
openflights/type=javax.sql.DataSource
openflights/driver=org.gjt.mm.mysql.Driver
openflights/user=pentaho_user
openflights/password=password
openflights/url=jdbc:mysql://localhost:3306/openflights

您在哪里定义了 JNDI 细节?

将 DRIVER 值更改为 com.mysql.jdbc.Driver

在 "C:\Users{YOURUSER}.pentaho\simple-jndi\default.properties" 中添加 JNDI 然后停止 bi 服务器并再次启动