我正在使用 Windows VPS 抓取数据。我正在使用 Python MySQL 连接器将记录插入 Linux 服务器(远程 MySQL)上的数据库中。它大约在 98% 的时间里都可以工作,但我间歇性地被这个“系统错误:10060”击中。
SQL 语法正确。我认为这一定是 Windows VPS 或 Linux 服务器的连接问题。也许问题与我共享主机并且没有支付私人服务器的费用有关。
如何强制 Python 提供更多信息以进行更有效的故障排除?
在 Linux 上哪里可以找到可以提供有关这些超时的有用信息的日志文件?
如何发现罪魁祸首是VPS还是Linux服务器?
真诚感谢任何建议。
2055: Lost connection to MySQL server at '[IP]:3306', system error: 10060 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