====================================================
MariaDB Connector/Python
====================================================

.. sectionauthor:: Georg Richter <georg@mariadb.com>

.. testsetup::

   import mariadb
   conn_params= {
      "host" : "localhost",
      "database" : "test"
   }
   with mariadb.connect(**conn_params) as conn:
      with conn.cursor() as cursor:
         cursor.execute("CREATE USER IF NOT EXISTS example_user@localhost identified by 'GHbe_Su3B8'")
         cursor.execute("grant all on test.* to example_user@localhost")
         cursor.execute("DROP TABLE IF EXISTS book")

|MCP| enables python programs to access MariaDB and MySQL databases, using an API
which is compliant with the Python |DBAPI|. It is written in C and Python and uses
MariaDB Connector/C client library for client server communication.

.. rubric:: Contents

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   install
   usage
   pooling
   api
   license
   bugs
   faq

{% @marketo/form formId=\"4316\" %}