【发布时间】:2015-10-03 05:13:06
【问题描述】:
在 BIRT 中,当我尝试从本地主机获取记录时,它工作正常。但是当我尝试使用远程连接时,我收到如下所示的错误:
错误:
org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Cannot get the result set metadata.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement does not return a ResultSet object.
SQL error #1:Table 'test.TBLUSERS' doesn't exist ... 63 more
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'testbms.TBLUSERS' doesn't exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
注意:
表名会自动变为大写字母,就是因为这样。 因为客户端服务器是 linux 并且它是否区分大小写。 但它显示列名但不显示记录。只要我点击 完成后,我收到下图中指定的错误。
参考图片:
如上图所示,它已填充第二行中的表格列
他们是否需要为远程连接进行任何特殊配置,还是我做错了什么?
【问题讨论】:
-
But it displays column names but not the records- 检查您的连接用户的权限。 -
我检查了权限,一切都很完美。这只是由于将小写字母转换为大写字母造成的。这是因为区分大小写。如何处理?
标签: mysql eclipse exception jdbc birt