2表是2小时在mysql数据库中执行简单的select语句 [英] 2 Tables are 2 hours to execute simple select statement in mysql database

查看:109
本文介绍了2表是2小时在mysql数据库中执行简单的select语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2张桌子需要花费数小时的时间,甚至是简单的选择声明。赞

选择*来自dbo.people限制3

如果有人知道答案请回复。< br $>




谢谢和问候

Lakshman

解决方案

< blockquote>可能是以下之一:



1.有大量数据

2.服务器很慢

3.索引不合适。


我遇到了这个问题,因为有些quries正在内部执行。在那些表上的数据库中。

First我们必须看看那些执行过程。

使用

显示前景列表



然后使用进程ID终止进程。



killprocess processid


2 tables are taking hours of time even simple select statement.like
select * from dbo.people limit 3
if any one know the answer please reply.


Thanks & Regards
Lakshman

解决方案

It is likely one of the following:

1. There is a ton of data
2. The server is slow
3. Indexing is not appropriate.


i got this problem becouse some quries are executing internally.in database on that tables.
First we have to see those executing process.
using
show prosseslist

then kill the process using process id.

killprocess processid


这篇关于2表是2小时在mysql数据库中执行简单的select语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆