Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
org.apache.ibatis.exceptions.PersistenceException:学习mybatis出现这种错误可能就是你的mysql版本和使用的mysql驱动不匹配。我之前使用的是8.几版本的mysql,使用5.几驱动则会报错,改成8.几的驱动则可以正常运行。Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai