I'm getting error
Cannot establish a connection to jdbc:mysql://localhost:3306/world?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (Unable to load authentication plugin 'caching_sha2_password'.)
in netbean established the connection.
follow these steps:
it will run.
The newer versions of MySQL default to caching_sha2_password. If you want to disable it then follow below steps
YOUR_ROOT_USER_NAME
andYOUR_ROOT_USER_PASSWORD
You will no longer get any '
caching_sha2_password
' exception while connecting for any client after this.