get_server_version()

Overview

In 1.1:

Returns a tuple representing the version of the connected server in the following format: (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)

In 1.0:

get_server_version() method exists for compatibility reasons. However the preferred way to retrieve server version information are the server_version and server_version_info connection attributes

See also: MariaDB Connector/Python 1.1 and in 1.0

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.0rc1.

1.0

  • Added in MariaDB Connector/Python 1.0.5.