zoukankan      html  css  js  c++  java
  • BUG记录,ORM(MyBatis),Could not get JDBC Connection

    (编程新手)

    问题描述:

    (核心错误提示)

    org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

    ### Error querying database.  Cause:

    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create

    PoolableConnectionFactory (Client does not support authentication protocol requested by server; consider upgrading MySQL client)

    ### The error may exist in com/zwh1730090431/po/StudentMapper.xml

    ### The error may involve com.zwh1730090431.po.StudentMapper.findStudentById

    ### The error occurred while executing a query

    ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Client does not support authentication protocol requested by server; consider upgrading MySQL client)

    拿不到连接?

    解决办法:

    更换高版本jar包。把原来5.x更换为8.x。如下图所示。

    问题出现原因:

    不知道。

    其他触发并解决这个问题的连接:

    https://www.jianshu.com/p/582ae6d91154

    https://www.cnblogs.com/spec-dog/p/6226212.html

    https://blog.csdn.net/wls666/article/details/89886656

    https://blog.csdn.net/Ltp_Ltp/article/details/85603199

    https://www.cnblogs.com/noino/p/10882598.html

    https://www.cnblogs.com/HHR-SUN/p/7580412.html

  • 相关阅读:
    Mac下安装brew
    Mac下安装node.js
    Mac下mysql服务端密码重置及环境配置
    Mac配置jdk以及maven
    Mac下卸载jdk
    34个漂亮的应用程序后台管理界面(系列一)
    ViewState
    get和post
    无刷新 分页评论
    isPostBack原理
  • 原文地址:https://www.cnblogs.com/JuniorProgramer/p/13046831.html
Copyright © 2011-2022 走看看