Jump to content

Database Crash happened.. because of select query need a HELP


rajmohan

Recommended Posts

Hi All,

 

    I am having one table which is having more then 100 millions of records... I have written a query like this.. for example..

SELECT COUNT(*) FROM tbl_name where user_id='XXXX'

(The use of this query is to count how many hit happen by this users. )

 

When I execute this query it crashes my database.. please help me. Now I need a very best solution to solve this problem..

>>How to find whether the table is corrupt or not..

u can't.. but something like that.. (fail select).. related to crash data

 

>>I am using the storage engine "MYISAM"..

actualy.. type don't related to the table corrupt or not

i have DB using MYISAM.. is already fail after a year, but there more old.. not crash.. is only a matter of luck i believe

>>I am using the storage engine "MYISAM"..

actualy.. type don't related to the table corrupt or not

 

Actually it is. Different storage engines fail in different ways. InnoDB for example can fix itself most of the times without user ever noticing it failed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.