The server requested authentication method unknown to the client in MySQL 8

Today, I got another error when I tried to run migrate artisan command in Laravel. The error said: “The server requested authentication method unknown to the client”. This error appeared after I upgraded MySQL server from 5.7 to latest version as known 8.0