navicat 连接 sharding-proxy 可以正常操作
但是使用idea 自带的数据库管理工具,连接时报错,能连接上,但是看不到schema;
[C1997][1997] Runtime exception: [unsupported table : tables
].
[C1997][1997] Runtime exception: [unsupported table : tables
].
IntellIJ IDEA
和ShardingSphere Proxy
的版本号是? 尝试先在jdbcurl
指定一下具体的库(schema)?tables
有点奇怪,因为它并不是information_schema
的一部分. 我在IntellIJ IDEA Ultimate 2021.2.3
和DataGrip 2021.3.1
无法复现. ( 也许与 Plan to support information_schema
· Issue #11994 · apache/shardingsphere (github.com) 相关)我的idea和sharding都是最新版
我首先在idea2020版发现了问题,然后我升级到了最新idea,还是有这个问题。
@logbug 你好,目前对不同版本客户端的支持还有待完善,最新客户端目前还不能全面支持,
关于支持的客户端可以参考 FAQ
另外对 Tables 的支持目前还处于调研状态,有好的主意欢迎贡献到社区一起完善
使用你这个配置,可以看到schema ,但是依然看不到表呀。我看源码里面就没支持这个tables
IntelliJ IDEA 2021.3 (Ultimate Edition) 我是这个版本,你是啥版本?
你这个显示的应该不是sharding 的逻辑库吧?
我分别尝试了4.1.1版的proxy和5.0.0版本,呈现两种不同问题:
4.1.1:默认连接后出现实体库和表;选中 Incorrect using JDBC metadata 的话就只显示上图的逻辑库并且不现实逻辑表
5.0.0:默认连接后报错: unsupported table : tables
;选中 Incorrect using JDBC metadata 的话就只显示上图的逻辑库并且不现实逻辑表
我确实用的是3307端口
这有点奇怪,先根据 FAQ 中的建议,使用 Navicat 或者 MySQLWorkbench 吧。
我试了试这个选项,竟然可以了。
我的Datagrip版本信息是:
DataGrip 2021.1.3
Runtime version: 11.0.11+9-b1341.57 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
我的shardingsphere-proxy版本是:
apache-shardingsphere-4.1.1-sharding-proxy-bin
希望有参考价值
感谢,有空了试试看。