Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.5Mb
PDF (A4) - 4.5Mb


6.4.4.2 Installing by RPMs

Installation by RPMs is only supported on RedHat Enterprise Linux and Oracle Linux, and is performed using the MySQL Yum Repository or by using RPM packages downloaded directly from Oracle.

6.4.4.2.1 Using the MySQL Yum Repository

RedHat Enterprise Linux and Oracle Linux platforms can install Connector/Python using the MySQL Yum repository (see Adding the MySQL Yum Repository and Installing Additional MySQL Products and Components with Yum).

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. Install it using the Yum repository

    Press CTRL+C to copy
    $ sudo yum install mysql-community-client-plugins
Installation

Use the following commands to install Connector/Python:

Press CTRL+C to copy
$ sudo yum install mysql-connector-python # Optionally, install also X DevAPI $ sudo yum install mysqlx-connector-python
6.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.

    Press CTRL+C to copy
    $ rpm -i mysql-community-client-plugins-ver.distro.architecture.rpm
Installation

To install Connector/Python using the downloaded RPM packages:

Press CTRL+C to copy
$ rpm -i mysql-connector-python-ver.distro.architecture.rpm # Optionally, install X DevAPI $ rpm -i mysqlx-connector-python-ver.distro.architecture.rpm