在 DataGrip 中定义 Redshift 连接

2024-01-22

我尝试在 DataGrip 中定义 Redshift 连接,但在 UI 中找不到任何 Redshift 驱动程序。我尝试使用 Postgres 和通用数据库驱动程序,但没有成功。

有人能够配置这个吗?


如果您想将 DataGrip 连接到 Redshift 我建议您使用来自 AWS 的 jdbc 驱动程序 http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html。只需将它们下载到可以保存它们的目录即可。

Then you open DataGrip and go to the data sources menu (⌘;). File -> Data Sources...

Right-Click on one of the pre-installed drivers or somewhere in the driver section. And select 'Add → Driver' Add -> Driver

Give it a good name like 'Redshift' and in the bottom part, click on the + Symbol under Driver files, select the driver you just downloaded and click OK. Add the driver

Under class, select com.amazon.redshift.jdbc41.Driver, under Dialect, select PostgreSQL. Select Class and Dialect

Now you can go to the data sources menu (⌘;) and click on the "+" symbol in the top left corner and select the Driver you just created (in my case it's called "Redshift") as the data source type. Select Driver for new Connection

Now copy your redshift jdbc url (you can find it in your cluster configuration under "Cluster Database Properties") into the URL field and fill the user and password fields with your credentials. JDBC url

现在您可以单击“测试连接”,它应该可以工作。

我希望这有帮助。如果您对遵循说明还有其他疑问或问题,请随时发表评论。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 DataGrip 中定义 Redshift 连接 的相关文章

随机推荐