How to establish connection with Mariadb database

Please find some of the documentation links/articles: