This is beacuse the version of mysql to be connected is lower than the version of the mysql driver.
Many people say that com.mysql.jdbc.Driver is changed to com.mysql.cj.jdbc.Driver , although this does not solve the problem, but it should also attract attention.