Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
发生了一件我无法理解的奇怪事情
当我触发以下查询时,我收到错误 2013:
查询:select * from userMaster order by id desc limit 5;
错误 2013 (HY000): 查询期间丢失与 MySQL 服务器的连接
但是,当我更改限制子句或添加 where 子句时,它开始工作:
例如 select * from userMaster order by id desc limit 5,5; - 这行得通
mysql5.5升级到5.6可能会出现这个问题。
赶紧跑:
mysql_upgrade -u root -p
那么它可能是正常的。
参考:升级 MySQL