Unable to load authentication plugin 'caching_sha2_password' in Netbean

前端 未结 3 1167
你的背包
你的背包 2021-01-20 12:04

I am connecting MySQL - 8.0 with Netbean and get error: Unable to load authentication plugin \'caching_sha2_password\'. Any solution for this ?

相关标签:
3条回答
  • 2021-01-20 12:27

    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 
    
    0 讨论(0)
  • 2021-01-20 12:36

    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.

    0 讨论(0)
  • 2021-01-20 12:37

    You should use MySQL Connector/J 8.0.9 or higher.

    For Windows 7:

    1. Create a new driver new driver creation
    2. Select a new MySQL Connector/J 8.0.9 or higher choosing new driver If you didn't install it during MySQL setup, you should do it first
    3. Create a new connection using new driver new connection creation
    4. Check an information, enter the password, change a value of the "zeroDateTimeBehavior" param to "CONVERT_TO_NULL", test the connection check connection If you have a "time zone" error, you should configure your MySQL time zone first
    0 讨论(0)
提交回复
热议问题