MySQL version 6 or above creates the current time database error solution

If the new Date(); data time is wrong, Linux himself tests the following Linux, the solution is to add serverTimezone=GMT%2B8 to the place where the database is linked; for example, the following format.

url: jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326358255&siteId=291194637