Overview

Azure Database for MariaDB is a fully managed relational database service that enables you to easily run, manage, and scale your MariaDB databases in the cloud. It offers the flexibility of open source with the enterprise-grade performance, security, and availability of Azure.

Azure Database for MariaDB is scheduled for end-of-support on October 16, 2025. Consider migrating to Azure Database for PostgreSQL - Flexible Server or Azure Database for MySQL - Flexible Server.

Key Features

  • Managed Service: Handles patching, updates, backups, and high availability.
  • Scalability: Easily scale compute and storage up or down to meet demand.
  • Performance: Choose from multiple pricing tiers to match your workload needs.
  • Security: Built-in security features, including network isolation and encryption.
  • Hybrid Capabilities: Connect to your on-premises applications seamlessly.

Getting Started

To create your first Azure Database for MariaDB server, follow these steps:

  1. Navigate to the Azure portal.
  2. Click Create a resource.
  3. Search for "Azure Database for MariaDB" and select it.
  4. Click Create and fill in the required details for your server.

Example Connection String (Python)

import pymysql

# Replace with your connection details
host = 'your_server_name.mariadb.database.azure.com'
user = 'your_username@your_server_name'
password = 'your_password'
db = 'your_database_name'

connection = pymysql.connect(host=host, user=user, password=password, database=db)

try:
   with connection.cursor() as cursor:
      sql = "SELECT VERSION()"
      cursor.execute(sql)
      result = cursor.fetchone()
      print(f"Database version: {result[0]}")
finally:
   connection.close()

Common Scenarios

  • Web application backends
  • Content management systems (CMS)
  • E-commerce platforms
  • Data analytics

Resources