You must configure either the server or JDBC driver (via the serverTimezone conf) https://blog.csdn.net/iiiiiilikangshuai/article/details/98459941