SOLVED: MediaWiki Database Issue
Posted: Fri Dec 27, 2013 12:39 pm
This particular MediaWiki (MW) Problem resulted from a server issue (accessing HDA dashboard) I had. Just in case that background is important, here is the link to that issue which was resolved (insofar as the server problem was resolved). For one thing, it's good to know that the server issue, even when resolved, may be having this MW database side effect. The solution to the MW database problem, however, may involve steps related to the MW software itself, rather than the server issue that created it, and so I'm posting here:
viewtopic.php?f=16&t=5083
----
Here's what works fine:
1) I can pull the MW up either via the HDA dashboard or by directly entering it's address.
2) The couple dozen articles I've put into it, the latest one last night, are still accessible, and render math perfectly.
The problem:
3) There is something wrong with the search function, which I've used without issue all the time, over the last couple months. IF I type a search item like "ring homomorphism", and the MW 'recognizes' what I'm up to, then it will fill in the rest of the words for me (like all MWs do). IF I then click on that convenient fill-in, the MW will then take me right to the article, no problem. However, if I hit enter (thereby ignoring the fill-in) because I want to see all articles in the MW database with the term "ring homomorphism" (a function that literally worked up until the time I had my server issue), then I receive the following error:
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "SearchMySQL::searchInternal". Database returned error "145: Table './mediawiki/searchindex' is marked as crashed and should be repaired (localhost)".
I rather repair this issue somehow rather than reinstall the entire MW for two important reasons
1) I'd lose the articles, unless I took steps to somehow grab them all and save them somewhere first
2) I'd rather not go thru the process of adding the math-rendering (installing MathJax and XyJax) steps again.
Hopefully, someone has an idea about a rapid fix here. I have to believe that this is also just something that needs to be tweaked following the server issue I had earlier today. Again, this MW was working almost up to the time I decided to reboot my server (I had been working on adding a USB hard drive yesterday and wanted to see what would happen if I rebooted the entire server...)
All my other apps appear to be working fine.
Thanks again !
viewtopic.php?f=16&t=5083
----
Here's what works fine:
1) I can pull the MW up either via the HDA dashboard or by directly entering it's address.
2) The couple dozen articles I've put into it, the latest one last night, are still accessible, and render math perfectly.
The problem:
3) There is something wrong with the search function, which I've used without issue all the time, over the last couple months. IF I type a search item like "ring homomorphism", and the MW 'recognizes' what I'm up to, then it will fill in the rest of the words for me (like all MWs do). IF I then click on that convenient fill-in, the MW will then take me right to the article, no problem. However, if I hit enter (thereby ignoring the fill-in) because I want to see all articles in the MW database with the term "ring homomorphism" (a function that literally worked up until the time I had my server issue), then I receive the following error:
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "SearchMySQL::searchInternal". Database returned error "145: Table './mediawiki/searchindex' is marked as crashed and should be repaired (localhost)".
I rather repair this issue somehow rather than reinstall the entire MW for two important reasons
1) I'd lose the articles, unless I took steps to somehow grab them all and save them somewhere first
2) I'd rather not go thru the process of adding the math-rendering (installing MathJax and XyJax) steps again.
Hopefully, someone has an idea about a rapid fix here. I have to believe that this is also just something that needs to be tweaked following the server issue I had earlier today. Again, this MW was working almost up to the time I decided to reboot my server (I had been working on adding a USB hard drive yesterday and wanted to see what would happen if I rebooted the entire server...)
All my other apps appear to be working fine.
Thanks again !