一、场景
一直都是用navicat作为数据库的连接工具,但是navicat不支持连接DB2,网上也推荐很多其它软件工具,但是因为DB2用的场景不多,这次只是开发etl工具需要测试数据库,正好发现idea可以连接数据库,不需要安装配置之类的,直接使用~对于懒人我来说很赞了~
二、连接
1、打开idea,最右侧有一个Database的工具栏,点击“+”:
2、选择"Data Source"---->"DB2(LUW)"
3、配置数据库参数:
4、链接成功,右键选中,新建,修改,删除等都可以通过idea操作~