server_info

Overview

This connection value (read-only) returns the alphanumeric version of connected database. See server_version for the numeric version.

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

import mariadb

conn = mariadb.connect(
    host = 'localhost',
    user = 'root',
    password = 'secret',
    )

print(conn.server_info) # Prints a string such as: 10.4.11-5-MariaDB-enterprise

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.0rc1.

1.0

  • Present starting in MariaDB Connector/Python 1.0.0.