Druid

Druid与springboot配置文件时区配置serverTimezone=UTCspring:datasource:username:rootpassword:adminurl:jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&

MySQL

创建数据库CREATEDATABASEIFNOTEXISTStest_db_charDEFAULTCHARACTERSETutf8DEFAULTCOLLATEutf8_bin;查看数据库SHOWDATABASES;修改数据库ALTERDATABASE[数据库名]{[DEFAULT]CHARACTER