I am connecting MySQL - 8.0 with Netbean and get error: Unable to load authentication plugin \'caching_sha2_password\'. Any solution for this ?
Try to find your my.ini
(windows) or my.cnf
(mac os) file and add the following line in order to change default authentication:
default_authentication_plugin=mysql_native_password
Do not do anything with your admin DB or user table. Here is a solution, first of all, if you have already any connection which is unable to connect, delete it. then download the drivers from this link https://jar-download.com/download-handling.php after downloading the drivers extract them and cut-paste them in the following directory. C:\Program Files\NetBeans 8.0.2\ide\modules\ext\ After doing this all, create a new connection but change the drivers with the above drivers. Now test the connection. It worked for me successfully and I hope it will work for you too.
You should use MySQL Connector/J 8.0.9 or higher.
For Windows 7: