Spring boot CLIENT_PLUGIN_AUTH is required

后端 未结 4 1340
我寻月下人不归
我寻月下人不归 2020-12-21 04:48

I have my app working fine on local, but when I tried to connect to remote server I get this error: CLIENT_PLUGIN_AUTH is required.

4条回答
  •  忘掉有多难
    2020-12-21 05:14

    Check that you do have a version issue.

    The Spring Boot project creator will download the latest MySQL connector (currently Version 8) so if you are running an older version of MySQL then the CLIENT_PLUGIN_AUTH error probably results from this.

    You can convince maven to use an older version of the connector (as in Satish's reply) or add the connector outside of Spring Boot:

    Remove the mysql-connector-java dependency from your pom.xml

    Download the mysql-connector-java for your MySQL – usually the one from your distro.

    With: Project -> Properties -> Java Build Path

    select the Libraries tab.

    And add External JAR:

        /usr/share/java/mysql-connector-java-5.1.17.jar
    

    or something similar.

提交回复
热议问题