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

  • 相关阅读:
    Vue之利用vueRouter的元信息实现页面的缓存
    Vue之directives所遇小bug
    《CSS世界》读书笔记
    git 错误error: failed to push some refs to
    v-text指令消除刷新慢显示替换的过程
    防抖案例实战之仿百度搜索框即时搜索
    数字金额转大写金额
    常见前端安全
    sendmail邮箱部署设置
    Shell之监控cpu、内存、磁盘脚本
  • 原文地址:https://www.cnblogs.com/JuniorProgramer/p/13046831.html
Copyright © 2011-2022 走看看