How to change the login authentication plugin
Question
How to resolve Unable to load authentication plugin 'caching_sha2_password' issue
In eclipse when i started my application i got this - Could not discover the dialect to use. java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.
Answer
Starting with MySQL 8.0.4, they have changed the default authentication plugin for MySQL server from mysql_native_password to caching_sha2_password.
Run
ALTER USER 'student'@'localhost' IDENTIFIED WITH mysql_native_password BY 'pass123';