You can connect to MariaDB from python using the MySQL Connector/Python.  It is developed by MySQL specifically to enable Python programs to access MySQL databases, using an API that is compliant with the Python database API specification v2.0 (PEP 249).  It is written in pure Python and does not have any dependencies except for the Python Standard Library.  Please find details for MySQL Connector at:

Python & libraries

We encourage you to use an Anaconda installation of Python, as most libraries needed for connecting to the database and fetching/saving data are there. You can install the MySQL connector from via pip install.  From your terminal / shell / command line / Anaconda prompt, issue:

        pip install mysql-connector-python

You should see something similar to the following screen shot:

mysql connector

In the case that you run into issues with pip install, you may download the MySQL-Python connector directly from:  Please make sure you select the correct installer for your system and python version:

windows mysql python connector  


We encourage you to use this configuration file for all connections to the MariaDB server. This file contains the hostname of hte server, connection port, login credentials, and the location of the certificate file. You should have received this file from the RCS staff when you obtained your account and saved it 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.

Connection code

We encourage you to use our simple python script file as a template for connecting to the MariaDB server. Please contact for the sample script.  

Please see for more information on appropriate functions to use.