1 登录mysql mysql -u root -p 输入密码 2 查看wait_timeou show global variables like ‘wait_timeout‘; 3 设置 set global wait_timeout=604800; set global interactive_timeout=604800; 4 重启mysql docker-compose restart mysql;
Mysql : Communications link failure
原文:https://www.cnblogs.com/hanjun0612/p/15011921.html