Connection to @localhost failed. [08001] Could not create connection to database server. Attempt 使用idea连接数据库时报如下错: 在网上查询之后才发现需要在URL后边加: ?serverTimezone=GMT 如下所示: