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

  • 相关阅读:
    页面可视化搭建工具前生今世
    16、Redis手动创建集群
    15、Redis的集群
    14、Redis的复制
    13、Redis的发布订阅模式
    12、Redis的事务
    11、Redis的持久化(RDB、AOF)
    9、Redis处理过期keys的机制
    8、Redis中sort命令详解
    7、Redis中对ZSet类型的操作命令
  • 原文地址:https://www.cnblogs.com/JuniorProgramer/p/13046831.html
Copyright © 2011-2022 走看看