我知道有100多个帖子,但是有关于超时等信息,而不是关于查询的信息...
MySQL服务器: 5.7.17
MySQL Workbench: 6.3.8
查询:
SELECT transactionID, fromAccount,ToAccount, transactionDate, amount, type
FROM accounttransactions WHERE toAccount = '12345' #OR fromAccount = '12345'
回复:
它可以工作,但是当我更改查询并在OR
语句中添加(在这种情况下取消注释)WHERE
时,它将运行约6秒钟,并且看起来像:
Error Code: 2013. Lost connection to MySQL server during query