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-protobufRPM 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-pluginspackage is required for using robust authentication methods likecaching_sha2_password, which is the default authentication method for MySQL 8.0 and later. Install it using the Yum repository$ sudo yum install mysql-community-client-plugins
Installation
Use the following commands to install Connector/Python:
$ sudo yum install mysql-connector-python
# Optionally, install also X DevAPI
$ sudo yum install mysqlx-connector-python