错误提示
2022-03-17T13:47:16+08:00 EROR init database failed: database migrate failed: dial tcp 172.21.5.255:3306: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
原因:linux 开了防火墙
查看防火墙状态方法:
systemctl status firewalld;
active 为打开
关闭方式 systemctl stop firewalld;
这种方法重启虚拟机时会失效