View Full Version : Database error
Chroder
Tue 13th Jan '04, 6:57pm
I recently had some database issues and I cleared a lot of stuff up by repairing the tables. But I try to repair one and I get an error -- what can I do to fix this? I don't want this same mysql error to come up everyday.
Invalid SQL: SELECT attachmentid, COUNT(*) AS views FROM vb_attachmentviews GROUP BY attachmentid mysql error: Can't find file: 'vb_attachmentviews.MYD' (errno: 2)
mysql error number: 1017
noppid
Tue 13th Jan '04, 9:24pm
I think that means the table 'vb_attachmentviews' is missing from your database completely.
Chroder
Tue 13th Jan '04, 9:54pm
When I view the database with phpMyAdmin, it just says its 'in use'. I'm guessing something got corrupt somewhere... But I'm not sure, if I just drop it will vB just reset attachment views or will it throw more errors?
Steve Machol
Wed 14th Jan '04, 12:45am
Any table showing 'in use' is corrputed. You need to repair those tables.
As for the attachmentviews table, do a search for 'attachmentviews.MYD' on these forums. There have been some issues with this.
Chroder
Wed 14th Jan '04, 10:34pm
Thanks Steve :) Searched and found :cool:
FWIW, just drop the table and remake it by looking in the install/mysql-schema.php file for the sql.
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.