在配置MySQL和PyCharm时,经常出现这样的错误提示: Connection to base@localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. 经过一段时间的折腾,终于搞定. 以下是解决步骤 1.在CMD中输入命令: show variables like '%time_zone% 如果value中显示的是SYST