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

  • 相关阅读:
    谷歌分析配置行为事件
    CentOS7.6下模拟iSCSI,Windows来连
    2.CentOS6.5下的DNS主从区域传送配置
    1.CentOS6.5下的基础DNS配置
    CentOS下搭建DHCP服务
    思科设备配置DHCP服务
    思科网络设备配置AAA认证
    vsftpd文件虚拟用户搭建
    Windows网络服务渗透攻击分类
    使用脚本来监控新建进程及其父进程以及他们的命令行
  • 原文地址:https://www.cnblogs.com/JuniorProgramer/p/13046831.html
Copyright © 2011-2022 走看看