How to resolve Connections using insecure transport are prohibited while –require_secure_transport=ON

The quickest fix would be to go to
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf and remove the:

"requiresecuretransport = on"

Then restart via:

sudo systemctl restart mysql

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)