[Seek Help] 求助!!为啥无法连接到mysql(前几天还能正常连接)求大神解答 Resolved
Tofloor
poster avatar
cecil
deepin
2023-05-18 00:32
Author

image.png
image.png
image.png

Reply Favorite View the author
All Replies
落日
deepin
2023-05-18 00:37
#1
It has been deleted!
xye9008
deepin
2023-05-18 00:45
#2

看你的网关是不是存在问题也就是122.1.1.1 ,先ping下ip (ping 122.1.0.1 )

问题表现:

1、mysql没起或者说死了

2、网络策略出现问题了

可以针对性的排查

Reply View the author
TLT
deepin
2023-05-18 00:45
#3

放开远程连接试试,或者使用 --net host

Reply View the author
cecil
deepin
2023-05-18 00:48
#4
xye9008

看你的网关是不是存在问题也就是122.1.1.1 ,先ping下ip (ping 122.1.0.1 )

问题表现:

1、mysql没起或者说死了

2、网络策略出现问题了

可以针对性的排查

image.png

Reply View the author
cecil
deepin
2023-05-18 00:48
#5
TLT

放开远程连接试试,或者使用 --net host

在哪里开放

Reply View the author
xye9008
deepin
2023-05-18 00:55
#6
cecil

image.png

说明网络策略没有问题,

方案1、可以使用docker restart mysql镜像 重启下,看下使用正常不

方案2、docker exec -it 后台进入docker容器,查看mysql启动情况 参考https://www.runoob.com/docker/docker-exec-command.html

Reply View the author
cecil
deepin
2023-05-18 01:01
#7
xye9008

说明网络策略没有问题,

方案1、可以使用docker restart mysql镜像 重启下,看下使用正常不

方案2、docker exec -it 后台进入docker容器,查看mysql启动情况 参考https://www.runoob.com/docker/docker-exec-command.html

image.png

Reply View the author
xye9008
deepin
2023-05-18 01:06
#8
cecil

image.png

这样的话就只有百度看看了,爱莫能助了。

Reply View the author
cecil
deepin
2023-05-18 01:07
#9

https://blog.csdn.net/qq_43571415/article/details/107345576 已解决。

Reply View the author
cecil
deepin
2023-05-18 01:08
#10
xye9008

这样的话就只有百度看看了,爱莫能助了。

感谢哥们,已经找到方法解决了。

Reply View the author