Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何从mac连接到aws红移数据库_Macos_Postgresql_Amazon Web Services_Amazon Redshift_Sequelpro - Fatal编程技术网

Macos 如何从mac连接到aws红移数据库

Macos 如何从mac连接到aws红移数据库,macos,postgresql,amazon-web-services,amazon-redshift,sequelpro,Macos,Postgresql,Amazon Web Services,Amazon Redshift,Sequelpro,我使用mac,通常使用Sequel Pro与sql数据库交互。通常我使用mysql,但我知道redshift使用Postgres 当我尝试连接到Redshift db时,我应该使用IP还是端点 另外,当我尝试连接时,我从Sequel Pro得到这个错误 Unable to connect to host {{my_db_host}}, or the request timed out. Be sure that the address is correct and that you have

我使用mac,通常使用Sequel Pro与sql数据库交互。通常我使用mysql,但我知道redshift使用Postgres

当我尝试连接到Redshift db时,我应该使用IP还是端点

另外,当我尝试连接时,我从Sequel Pro得到这个错误

Unable to connect to host {{my_db_host}}, or the request timed out.

Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL said: Can't connect to MySQL server on '{{my_db_host}}' (4)
有人能就如何建立联系提供建议吗


谢谢

如果安全组设置配置正确,您应该使用红移端点。在测试过程中,您可能希望将组设置为0.0.0.0/0。这将打开您的群集与整个internet的连接,您可以在其工作后将其锁定

您还需要确保具有正确的ODBC/JDBC驱动程序。我建议使用带有连接驱动程序的Netbeanscomes、SQL Workbench或Aginity Redshift。默认端口为5439

我认为您使用的驱动程序是错误的mysql驱动程序而不是psql驱动程序,因为您的错误是mysql服务器

对于mac,我相信您也可以尝试使用终端PSQL客户端。类似于

psql -H endpoint.aws.com -p 5439 -U username --password

如果安全组设置配置正确,则应该使用红移端点。在测试过程中,您可能希望将组设置为0.0.0.0/0。这将打开您的群集与整个internet的连接,您可以在其工作后将其锁定

您还需要确保具有正确的ODBC/JDBC驱动程序。我建议使用带有连接驱动程序的Netbeanscomes、SQL Workbench或Aginity Redshift。默认端口为5439

我认为您使用的驱动程序是错误的mysql驱动程序而不是psql驱动程序,因为您的错误是mysql服务器

对于mac,我相信您也可以尝试使用终端PSQL客户端。类似于

psql -H endpoint.aws.com -p 5439 -U username --password

仅供参考,Redshift是基于ParAccel的,ParAccel是PostgreSQL非常旧版本的一个经过大量修改的分支。这很像说Drizzle使用MySQL。红移是90%的PSQL,特别是那些没有理由用这种方式来处理大数据的东西data@djc39190%是古代PostgreSQL,是的。删除了一大堆函数和特性,比如过程语言。这是一个有用的产品,没有任何问题,但它真的不再是PostgreSQL了。仅供参考,Redshift是基于ParAccel的,ParAccel是非常旧的PostgreSQL版本的一个经过大量修改的分支。这很像说Drizzle使用MySQL。红移是90%的PSQL,特别是那些没有理由用这种方式来处理大数据的东西data@djc39190%是古代PostgreSQL,是的。删除了一大堆函数和特性,比如过程语言。它是一个有用的产品,没有任何问题,但它真的不再是PostgreSQL了。SQL工作台是一个不错的选择。对于os x:brew安装postgresql,则:psql-host=hostname-port=5439-dbname=dev-username=adminSQL工作台是一个不错的选项。对于os x:brew安装postgresql,然后:psql-host=hostname-port=5439-dbname=dev-username=admin