Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I use a file sharing website which crashes every few months. The owner has a maintenance person who normally fixes these crashes but this time that person has gone AWOL. The error you see when accessing the site is mysql related (in fact this error pops up sporadically but normally rights itself - this time it is more serious and the site has been out of action for several days)
My own mysql knowledge is limited but I asked whether I could help (the owner is not tech savvy) and this is the log which was passed:
Quote:
MySQL Error: Table 'torrents' is marked as crashed and should be repaired {Error No: 1194 - File: /rss.php}.. The query was: SELECT torrents.seeders, torrents.leechers, torrents.filename, torrents.name, torrents.owner, torrents.descr, torrents.size, torrents.added, torrents.times_completed, torrents.id, torrents.anonymous, categories.name AS cat_name, u.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users u ON (torrents.owner=u.id) WHERE category IN (99, 7, 43, 11, 12, 16, 100, 121, 23, 111, 49, 123, 50, 19, 114, 8, 20, 18, 21, 101) AND visible='yes' AND banned='no' AND (INSTR(CONCAT(',',categories.canview,',',',[ALL],' > 0 OR INSTR(CONCAT(',',categories.canview,',',',1,' > 0) ORDER BY added DESC LIMIT 5
MySQL Error: Can't find record in 'torrents' {Error No: 1032 - File: /rss.php}.. The query was: SELECT torrents.seeders, torrents.leechers, torrents.filename, torrents.name, torrents.owner, torrents.descr, torrents.size, torrents.added, torrents.times_completed, torrents.id, torrents.anonymous, categories.name AS cat_name, u.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users u ON (torrents.owner=u.id) WHERE category IN (124, 25) AND visible='yes' AND banned='no' AND (INSTR(CONCAT(',',categories.canview,',',',[ALL],' > 0 OR INSTR(CONCAT(',',categories.canview,',',',1,' > 0) ORDER BY added DESC LIMIT 50
I have taken a lead from the first line "marked as crashed". I guess this is the first issue to be addressed. A trawl around the net suggests
Quote:
REPAIR TABLE torrents;
As I can't see any other relevant information, is this a sensible course of action? Is a mysqldump recommended first?
I would definetely not call mysqldump first. As this seem to be a recurring problem the admin should probably change the disk the mysql uses for data storage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.