'Problem django, accessing database, "django.db.utils.OperationalError: (1043, 'Bad handshake')"

I want to deploy a Django app on a virtual machine hosted on a cluster. For this app i need access to a MySQL database that is also hosted on the cluster.

When I launch $ mysql -h 1XX.1XX.1.1XX -u test -p test on the virtual machine, i can access the database.

But when i run the django server, i've got an error : django.db.utils.OperationalError: (1043, 'Bad handshake')

It is the same error as when the versions of MySQL between the cluster and the VM are different but I installed the same.

Thank you for help.



Sources

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

Source: Stack Overflow

Solution Source