'issue with python-mysql library with in Docker

We have a peculiar situation. I have inherited some source code from the people who left the company.

in docker file they are installing the mysql driver via

apt-get install -y python3-pip sshpass python-mysqldb

and the container is running successfully, recentlhy after we upgraded mysql verskion to 8.x. we starred getting exception

Exception message: (2026, 'SSL connection error: unknown error number')

I tried to upgrade the python-msql

apt-get upgrade python-mysql

I always get the message

root@ad27eb3de17d:~# apt upgrade python-mysqldb
Reading package lists... Done
Building dependency tree       
Reading state information... Done

**python-mysqldb is already the newest version (1.3.7-1build2).**

Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  wget
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

but we are still getting the same error message. please help what component do I need to upgrade?

we are using

root@ad27eb3de17d:~# python3 --version
Python 3.5.2

``


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source