Database Server
R
R
Connecting from R via RMariaDB
Similar to Python, you can connect to MariaDB in R with installed packages. RMariaDB is a database interface and MariaDB driver for R. It is aimed at full compliance with R's DBI specification.
R & libraries
install.packages("RMariaDB")
library(DBI)
library(RMariaDB)
.my.cnf
We encourage you to use this configuration file for all connections to the MariaDB server. This file contains the hostname of the server, connection port, login credentials, and the location of the certificate file. It should be saved at the appropriate location in your home folder. Guard this file as you would your credit card number! Please see our Configuration Files page for more information. Please contact RCS if you do not have this file.
Connection code
We encourage you to use our R script file as a template for connecting to the MariaDB server. Please contact RCS if you need assistance.
For detailed information about connecting R to MariaDB please refer to RMariaDB package documentation. For details about retrieving and working with data stored in MariaDB databases refer to the DBI package and dbplyr package documentation.