mybatis错误:Could not create connection to database server.

快来打我* 2023-06-12 09:51 129阅读 0赞
  1. org.apache.ibatis.exceptions.PersistenceException:
  2. ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
  3. ### The error may exist in EmployeeMapper.xml
  4. ### The error may involve suibian.selectEmployee
  5. ### The error occurred while executing a query
  6. ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

原因: 导入得mysql版本不对,我导入得是mysql5.17得,实际用的mysql版本是8.0.17

mysql各个版本得jar包

发表评论

表情:
评论列表 (有 0 条评论,129人围观)

还没有评论,来说两句吧...

相关阅读