Command line 与Snowsql连接

Command line 与Snowsql连接,command-line,snowsql,Command Line,Snowsql,我想设置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. Veri

我想设置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需要遵循哪些步骤


谢谢。

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

雪花文档中对此进行了解释,链接:

由于您使用的是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将提示输入密码。。另一种获取accountname的方法是使用CURRENT_USER()函数,该函数将返回需要与此页面中的region segment组合的帐户名