I am trying to connect to MySQL using RStudio on macbook pro M1 Max running on MacOS Sonoma 14.5
platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 4.0
year 2024
month 04
day 24
svn rev 86474
language R
version.string R version 4.4.0 (2024-04-24)
nickname Puppy Cup
the code that I am using to connect to the database is
con <- dbConnect(
RMariaDB::MariaDB(),
database=‘database_name',
host='database_hostname,
sslmode='REQUIRED',
user = ‘username',
password=‘password'
)
I get the error
Error: Failed to connect: Connections using insecure transport are prohibited while --require_secure_transport=ON.
I checked the connection to database from terminal and I was able to connect without a problem using the command
mysql -h dabase_hostname -u username -p
Since I am able to connect without certification (ca-cert.pem, client-cert.pem, client-key.pem) files, then I don’t think I need to use the arguments in the dbConnect command. However, I tried it and still didn’t work for me.
Looking at RMariaDB documentation, there is no argument for sslmode but in mysql documentation, there is argument for —ssl-mode
any advice would be greatly appreciated.
thank you!
I am trying to connect to MySQL using RStudio on macbook pro M1 Max running on MacOS Sonoma 14.5
platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 4.0
year 2024
month 04
day 24
svn rev 86474
language R
version.string R version 4.4.0 (2024-04-24)
nickname Puppy Cup
the code that I am using to connect to the database is
con <- dbConnect(
RMariaDB::MariaDB(),
database=‘database_name',
host='database_hostname,
sslmode='REQUIRED',
user = ‘username',
password=‘password'
)
I get the error
Error: Failed to connect: Connections using insecure transport are prohibited while --require_secure_transport=ON.
I checked the connection to database from terminal and I was able to connect without a problem using the command
mysql -h dabase_hostname -u username -p
Since I am able to connect without certification (ca-cert.pem, client-cert.pem, client-key.pem) files, then I don’t think I need to use the arguments in the dbConnect command. However, I tried it and still didn’t work for me.
Looking at RMariaDB documentation, there is no argument for sslmode but in mysql documentation, there is argument for —ssl-mode
any advice would be greatly appreciated.
thank you!