如果与MySQL或SSH的连接丢失,通过SSH从命令行执行的长期查询会发生什么
Context: We have 2 servers with a very large MySQL database on them. One server acts as the Master, and the other as Slave. During regular maintenance, the replication became corrupt, and we noticed data was missing from the slave, even though it reported Seconds_Behind_Master = 0.
所以我正在修复复制。就在我们说话的时候,我正在向奴隶进口两个大垃圾堆中的一个。我通过SSH连接到MySQL,并使用MySQL“.file.sql”命令导入转储。
现在,我不断得到这样的结果:“查询正常,6798行受到影响”。
它可能已经运行了30分钟。我的问题和担忧是,如果我在运行SSH时失去了连接,会发生什么
在这之后,我还有另一个更大的转储要导入。
谢谢你的回答!
-Steve