1. 关闭所有数据连接 2.选择左上角MysqlWorkbench -> preferences... (偏好设置) 3.选中 SQL Editor 右侧勾掉 Save snapshot of open editors on close