1.在idea中选择Database进行连接 2.之后继续如下步骤 jdbc:mysql://localhost:3306?serverTimezone=GMT 3. 输入 show databases之后查看结果,出现如下结果则配置成功