简体   繁体   中英

Trouble Connecting R Studio to Snowflake on M1 Macbook

I'm having trouble connecting to ODBC Snowflake in R Studio. Here are my connection settings, and I have installed the Snowflake driver as well as ODBC and I'm on an M1 Mac:

con <- DBI::dbConnect(odbc::odbc(),
                      Driver = '/opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib',
                      Server = <URL here from work>,
                      UID = <USERNAME>,
                      Trusted_Connection = "True",
                      authenticator = "externalbrowser",
                      Database = <DATABASENAME>)

I get the following error message after trying to run:

在此处输入图像描述

Be sure to install the ARM version of the library and not the universal one. For example, use snowflake_odbc_mac_arm64-2.25.7.dmg and not snowflake_odbc_mac-2.25.7.dmg

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM