Installation error ojs 2.4.8-5

i am installing for upgradation practice but after server setup and mysql-server Errors occurred during installation: please help for ojs 2.4 to ojs 3.2 upgrade. thank you
A database error has occurred: The server requested authentication method unknown to the client

i am using
Ubuntu 20.04
php 5.6
mysql 8

unable to find mysql 5.7 for ojs 2.4, if you have any link suggestion then help me.