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..

Link to comment
Share on other sites

>>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

Link to comment
Share on other sites

>>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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.