select * from 表1(数据量比较大,存储字节大小约为4GB) --> 服务挂掉
select * from 表2(数据量比较小,存储字节大小约为1GB) --> 服务正常,可查询结果集
不确定 是否是表1 坏掉了
检测硬盘没有坏区(检测工具 Macrori Disk Scanner V4.3.5)
任务管理器提示是这样的
InnoDB: Fetch of persistent statistics requested for table 'portal'.'form_making_obj'
but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure.
Using transient stats instead.For more information, see Help and Support Center at http://www.mysql.com.
InnoDB: Cannot open table mysql/server_cost from the internal data dictionary of InnoDB
though the .frm file for the table exists. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html
for how to resolve the issue.For more information, see Help and Support Center at http://www.mysql.com.
限制返回的条数看看
select * from 表1 limit 0,1
如果你怀疑硬盘问题,你可以用mhdd检查
另外可以排查下内存是否足够,数据库表本身是否有问题,防火墙的过滤以及网络连接的稳定性等。
排查的方法很简单,就是看看把这个数据库再拷贝一个出来,看看行不行
如果可以,在新数据库里,逐步删除一些数据,看看是否能执行。是特定的数据还是特定的时间,还是随机的错误