can't repair a crashed table

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   can't repair a crashed table
alper
CZ Newbie
alper has been a member for over 16 year's 16 Year Member
Status: Offline
Joined: Nov 17, 2007
0.00 posts per day
Posts: 1
Points: 0
   
hi guys,
i got a tiny problem regarding phpnuke v.8 and the process of posting a message in its forum:



Could not insert new word matches

DEBUG MODE

SQL Error : 1194 Table 'nuke_bbsearch_wordmatch' is marked as crashed and should be repaired

INSERT INTO nuke_bbsearch_wordmatch (post_id, word_id, title_match) SELECT 580, word_id, 0 FROM nuke_bbsearch_wordlist WHERE word_text IN ('ztüaiktikü')

Line : 252
File : functions_search.php


after a bit of research i found this code snippet:


<?php
require("config.php");
$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
mysql_connect($host, $username, $password);
@mysql_select_db($database);
$res = mysql_query("repair table ".$prefix."_nuke_bbsearch_wordmatch");
if ($res) {
    echo $res;
} else {
    print (mysql_error());
}
?>


I saved it as "repair.php" and put it in the same directory as the config.php as it was required, but unfortunately it only gives out a "resource id #4" message when i access it with my browser. i don't really know what it's supposed to mean and due to the fact that it didnt solve the problem (yet), i beg your help. icon_smile.gif

thanks in anticipation,

regards.


Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Did you try repairing it through phpmyadmin?

You may have to drop the table and rebuild it. Make sure if you do it that way you make a backup of the original structure and data.





_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum