Could not create connection to database server.] with root cause

发布时间 2023-09-15 14:13:48作者: 陈子白

场景:

  这几天在学springboot,入门引用mybatis遇到一些问题。排查了半天,真的哭死,记录一下。问题如题。

解决:

  主要是mysql驱动不同导致的。我连接的mysql是8.0.22,然后我pom中的mysql驱动版本是5.0什么的,害得我看xml看了半天。改一下就好。

参考:

https://blog.csdn.net/weixin_42204641/article/details/81155726

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/88628997