中断连接 (发生了通信包)
Mysql error.log 表明
在客户方面:
我读
http://dev.mysql.com/doc/refma ... .html
关于这个和许多其他主题。 因此,我改变了一些价值 my.cnf
抬头为破碎连接的请求杂志:
检查表状态。 bind-address - 这是服务器的IP地址,但我需要从外部连接。
[Warning] Aborted connection 320935 to db: '...' user: '...' host: '...' (Got an error reading communication packets)
在客户方面:
Lost connection to MySQL server at 'reading initial communication packet', system error: 111
Lost connection to MySQL server at 'reading authorization packet', system error: 0
and after a while: Host '...' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
我读
http://dev.mysql.com/doc/refma ... .html
关于这个和许多其他主题。 因此,我改变了一些价值 my.cnf
max_allowed_packet = 512M
connect_timeout = 60
net_read_timeout = 120
innodb_buffer_pool_size = 5G
抬头为破碎连接的请求杂志:
22400 Connect user@host on dbname
22400 Query SELECT @@sql_mode
22400 Query SET SESSION sql_mode=''
22400 Query SET NAMES utf8
22400 Init DB dbname
22400 Init DB dbname
检查表状态。 bind-address - 这是服务器的IP地址,但我需要从外部连接。
Aborted_connects is 196
没有找到相关结果
已邀请:
3 个回复
董宝中
赞同来自:
您可以在两侧执行包转储,以找出侧面发生的事情。 TCP, 和 / 或检查两侧之间存在的防火墙。
江南孤鹜
赞同来自:
确保运输级别按顺序。 你可以使用TCP连接吗?
?
您的客户是否同意是否使用加密 SSL?
我想在我想开始连接时记得很多情况 mysql 通过公众互联网,正如我怀疑的那样,究竟你的意思是“连接外面的可能性”。 在未加密的形式中,这是安全性的巨大风险和架空设置 SSL 对于大多数应用程序来说每个连接太高。 您可能希望使用一些永久加密的隧道。
风见雨下
赞同来自:
http://bugs.mysql.com/bug.php?id=24761
.