[英]MySQL Server Gone away error While restoring the database in RDS
I am getting " MySQL Server Gone away error While restoring the large (2GB ) database in RDS. I have checked many blogs and have changed the following parameters. 我在还原RDS中的大型数据库(2GB)时遇到“ MySQL Server Gone away错误”。我检查了许多博客,并更改了以下参数。
Max_allowed_packets to 1GB connect_timeout to 7200S. Max_allowed_packets到1GB connect_timeout到7200S。
But still i am facing the same issue. 但是我仍然面临着同样的问题。 And my RDS memory is touching the maximum level up-to 7GB.
而且我的RDS内存已达到最高7GB。 I have 8GB of RAM in my RDS with m4large MySQL RDS instance.
我的m4large MySQL RDS实例在RDS中有8GB的RAM。 Please give me some solution for this issue.
请给我一些解决方案。
Did you see this ? 你看到了吗?
rds-sql-server-gone-away rds-sql-server-gone-away
and this: 和这个:
To set MTU on a Linux operating system 在Linux操作系统上设置MTU
If your client runs in a Linux operating system, you can review and set the MTU value by using the ip command. 如果您的客户端在Linux操作系统上运行,则可以使用ip命令查看并设置MTU值。
Run the following command to determine the current MTU value: 运行以下命令以确定当前的MTU值:
$ ip link show eth0
Review the value following mtu in the output. 查看输出中mtu之后的值。
If the value is not 1500, run the following command to set it: 如果该值不是1500,请运行以下命令进行设置:
$ sudo ip link set dev eth0 mtu 1500
I hope this can help. 希望对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.