4.4.2.2 Using an RPM Package

Connector/Python RPM packages (.rpm files) are available from the Connector/Python download site.

You can verify the integrity and authenticity of the RPM packages before installing them. To learn more, see Verifying Package Integrity Using MD5 Checksums or GnuPG.

Prerequisites
  • For installing X DevAPI only:Because the required python3-protobuf RPM package is not available for Python 3.8 on the RedHat Enterprise Linux and Oracle Linux platforms, it has to be manually installed with, for example, pip install protobuf. This is required for Connector/Python 8.0.29 or later.

  • The mysql-community-client-plugins package is required for using robust authentication methods like caching_sha2_password, which is the default authentication method for MySQL 8.0 and later.

      $ rpm -i mysql-community-client-plugins-ver.distro.architecture.rpm
Installation

To install Connector/Python using the downloaded RPM packages:

$ rpm -i mysql-connector-python-ver.distro.architecture.rpm

# Optionally, install X DevAPI
$ rpm -i mysqlx-connector-python-ver.distro.architecture.rpm