1

我想设置 Snowsql 客户端,这样我就可以第一次连接并运行 PUT 之类的命令。

我不知道在哪里可以找到确切的值:

accountname = xxxx
username = xxxx
password = xxxx

当我从 Windows 命令提示符运行以下命令时:

C:\Users\noureddine.ettalhi>snowsql -a ettalhi -u ettalhi
Password:
250001 (08001): Failed to connect to DB. Verify the account name is correct: ettalhi.snowflakecomputing.com:443. HTTP 403: Forbidden
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!

它一直说提到的错误。那么我应该给出什么价值呢?

第一次使用 SnowSql 的步骤在哪里?

谢谢。

4

3 回答 3

0

帐户名称是用于访问雪花帐户的 URL 的一部分,在我的情况下是 vq985xx.ca-central-1.aws 因为我的 URL 是 https://vq985xx.ca-central-1.aws.snowflakecomputing.com

这在雪花文档中进行了解释,链接: https ://docs.snowflake.net/manuals/user-guide/getting-started-tutorial-log-in.html#step-1-log-into-snowsql

于 2020-01-14T22:27:58.300 回答
0

由于您使用的是 snowsql 客户端,您还可以在位于的配置文件中创建配置文件 .snowsql/config

[connections.MY_DEV]
accountname = myco.us-east-1
username = myuserid
database = mydb
role = mydb_admin
schema =  myschema
warehouse = my_WH

一旦你设置了一个配置文件,那么你可以指定 snowsql -c My_DEV 将提示输入密码 .. 只是另一种方式

于 2020-02-04T16:06:45.203 回答
-1

要获取帐户名,请使用 CURRENT_USER() 函数,该函数将返回您需要从该页面https://docs.snowflake.net/manuals/user-guide/getting-started-tutorial-log-in 与区域段结合的帐户名。 html#step-1-log-into-snowsql

于 2020-07-24T10:46:12.633 回答