0
我使用MobaExterm來運行我的python腳本。 該腳本正在從3個表中獲取記錄。我可以在MySQL Workbench中看到我的查詢輸出,但是當我的腳本中運行相同的查詢時,我得到的輸出爲「Killed」在python中自動殺死Mysql查詢
原因是什麼。我的查詢似乎正確。
select tsp.data_ip, tsp.IP, tvp.vm_d_ip, tvp.IP FROM cmdb.t_server tsp,cmdb.t_vm tvp,t_ip ip where tvp.SERIALNUMBER= 'AD123' or tsp.SERIALNUMBER= 'AD123' and (ip.ip=tsp.d_ip or ip.ip=tsp.IP or ip.ip=tvp.dip or ip.ip=tvp.IP);