New to all of this.
I have a MySQL database, set up with a connection to Snowflake which allows me to query all of the data I have inside the MySql workbench. The connections looks like this
I am now trying to query the data inside a jupyter notebook (hosted locally), and tried using this code to connect, which is telling me theres an issue, and from the error message I am assuming this is due to the hostname. Can anyone clarify this?
conn=pymysql.connect(host='jdbc:snowflake://xy12345.location.snowflakecomputing.com/',
port=int(3306),
user='myname',
passwd='thepasswordiuse',
db='TRAINING_DB')
The account name itself is missing in front of the location, see here: https://docs.snowflake.com/en/user-guide/admin-account-identifier.html
One example is xy12345.us-east-1.snowflakecomputing.com/
and the xy12345-part is missing in your example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.