circle-info
Live Webinar March 11 | Deploy MariaDB Cloud in Your Microsoft Azure Account. Retain Control.
Register Nowarrow-up-right
LogoLogo
search
⌘Ctrlk
Download MariaDBContact Us
  • Home
  • MariaDB Platform
  • Server
  • MaxScale
  • Analytics
  • Galera Cluster
  • Connectors
  • Tools
  • MariaDB Cloud
  • Release Notes
  • General Resources
GitBook Assistant
GitBook Assistant
Working...Thinking...
GitBook Assistant
Good afternoon

I'm here to help you with the docs.

⌘Ctrli
AI Based on your contextquestion-circle
LogoLogo
  • nfc-symbolMariaDB Connectors
  • rabbit-runningQuickstart Guides
  • linkConnector/C
  • linkConnector/C++
  • linkConnector/J
  • linkConnector/R2DBC
  • link.NET Connector
  • linkConnector/Node.js
  • linkConnector/ODBC
  • linkConnector/Python
    • About Connector/Python
    • Installation
    • Basic Usage
    • Connection Pooling
    • Application Development
    • API Reference
    • License
    • Bug Reports
    • Setup for Examples
    • Transactions with MariaDB Connector/Python
    • MariaDB Connector/Python FAQ
  • plugOther Connectors & Methods
gitbookPowered by GitBook
block-quoteOn this pagechevron-down

linkConnector/Python

Complete Connector/Python guide: DB API 2.0 (PEP-249) implementation, MariaDB/MySQL connectivity, C+Python architecture, and Connector/C transport.

hashtag
MariaDB Connector/Python

MariaDB Connector/Python enables python programs to access MariaDB and MySQL databases, using an API which is compliant with the Python DB API 2.0 (PEP-249arrow-up-right).

hashtag
Contents

hashtag
Contents:

  • Installation

    • Prerequisites

    • Installation Options

    • Installation from Source

    • Test suite

  • Basic usage

    • Connecting

    • Passing parameters to SQL statements

  • Async/Await Supportarrow-up-right (New in 2.0)

    • Basic Async Connectionarrow-up-right

    • Async Connection Poolsarrow-up-right

    • FastAPI Integrationarrow-up-right

  • Connection pooling

    • Synchronous Connection Pool

    • Asynchronous Connection Pool

  • Migration Guidearrow-up-right (1.1 to 2.0)

    • Breaking Changesarrow-up-right

    • New Featuresarrow-up-right

    • Migration Checklistarrow-up-right

  • API Reference

    • The MariaDB Connector/Python module

    • The connection class

    • The cursor class

    • The ConnectionPool class

    • Constants

  • License

    • MariaDB Connector/Python

    • MariaDB Connector/Python documentation

  • Bug reports

    • How to report a bug?

  • MariaDB Connector/Python FAQ

    • Installation

    • Connecting

    • General

    • Transactions

spinner
PreviousCreating a Data Source with MariaDB Connector/ODBCchevron-leftNextAbout Connector/Pythonchevron-right

Last updated 2 days ago

Was this helpful?

LogoLogo

Products

  • Enterprise Platform
  • Community Server
  • Download MariaDB
  • Pricing

Support

  • Customer Login
  • Technical Support
  • Remote DBA
  • Professional Services

Resources

  • MariaDB Blog
  • Webinars
  • Customer Stories
  • MariaDB Events
  • Documentation
  • Developer Hub

Company

  • About MariaDB
  • Newsroom
  • Leadership
  • MariaDB Careers
  • Legal
  • Privacy Policy

© 2026 MariaDB. All rights reserved.

  • MariaDB Connector/Python
  • Contents:

Was this helpful?