Downloading and Installing the MYSQL Connector

Download and install the MySQL Connector package.

  1. Download the MySQL Connector package corresponding to the MySQL version installed from MOS to a temporary directory of OCSM Server:
    If MySQL 8.0.32 Commercial is installed in the system, download MySQL Connector 8.0.32 Package from MOS (Patch 34984522: MySQL Connector/Python 8.0.32 WHL for portable Linux x86 (64bit) Python 3.9 -– p34984522_800_Linux-x86-64.zip)
  2. From the temporary directory, run the following commands to install MySQL Connector:
    yum install unzip
    
    unzip pXXXXXXXX_XXX_Linux-x86-64.zip
    
    pip3 install mysql_connector_python-8.X.X-1commercial-cp39-cp39-manylinux1_x86_64.whl
    For example:
    unzip p34984522_800_Linux-x86-64.zip
    
    pip3 install mysql_connector_python-8.0.32-1commercial-cp39-cp39-manylinux1_x86_64.whl

    Note:

    If necessary, use proxy with pip3. For example:
    pip3 install --proxy [PROTOCOL://]HOST[:PORT] mysql_connector_python-8.0.32-1commercial-cp39-cp39-manylinux1_x86_64.whl