Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Serious MYSQL Problem Details »»
Serious MYSQL Problem
Version: , by Aaron1 Aaron1 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-30-2003 Last Update: Never Installs: 0
 
No support by the author.

After optimizing the tables in PHPMYADMIN, i have got a serious error in my 'attachment' table. I tried "Repair table Attachment" with phpmydmin and i also tried to repair it with the suplied repair.php file in the extras folder, but no luck sofar.

Is there still a way to repair it, or to recreate it?


Here's the error that Vbulletin gave me:

---------
Database error in vBulletin 2.2.7:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,13598,13606,13610,13616,13695,13697,13871)
ORDER BY dateline

mysql error: Can't open file: 'attachment.MYD'. (errno: 144)

mysql error number: 1016

Date: Thursday 30th of January 2003 07:38:26 AM
Script: http://www.housequake.com/forum/foru...&threadid=2153
Referer: http://www.housequake.com/forum/foru...?s=&forumid=12
-----------

And here's the result using the repair.php:

-----------
housequake.attachment check warning Table is marked as crashed and last repair failed
housequake.attachment check warning 1 clients is using or hasn't closed the table properly
housequake.attachment check error Found 73 keys of 72
housequake.attachment check error Corrupt
Repairing table attachment
housequake.attachment repair error 122 when writing to datafile

mysql error: Can't open file: 'attachment.MYD'. (errno: 144)
mysql error number: 1016
-----------


I very much hope somebody can help me out...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-30-2003, 06:45 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Run repair.php file, included in the vBulletin .zip package.
Make sure you close the board before you do this and also that you have enough free space onto your server.
If your database is 150mb, you should have an extra 160mb of free space.

If it won't work, restore the database using the previous backup file you have.
Reply With Quote
  #3  
Old 01-30-2003, 07:21 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TECK
Run repair.php file, included in the vBulletin .zip package.
Make sure you close the board before you do this and also that you have enough free space onto your server.
If your database is 150mb, you should have an extra 160mb of free space.

If it won't work, restore the database using the previous backup file you have.
Thanks, but i already tried using the Repair.php, as i stated in my post already. But that didn't work out. The only table thats corrupt is the "attachment" table, but should it be possible to recreate that table again after i deleted it? If so, what querie should i use, to have the same attachment structure as before?
Is that possible?

Thanks for helping me out a bit!
Reply With Quote
  #4  
Old 01-30-2003, 11:57 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

run repair.php more than once, sometimes it helps...

if it really doesn't work, delete the table and recreate it:
[sql]CREATE TABLE attachment (
attachmentid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(10) unsigned DEFAULT '0' NOT NULL,
dateline int(10) unsigned DEFAULT '0' NOT NULL,
filename varchar(100) NOT NULL,
filedata mediumtext NOT NULL,
visible smallint(5) unsigned DEFAULT '0' NOT NULL,
counter smallint(5) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (attachmentid)
)[/sql]
Reply With Quote
  #5  
Old 01-30-2003, 12:50 PM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

I don't know which solution worked, because i first delete the searchindex, which seems to occupie alot of MB.
After that i tried the repair.php a couple of times, and then i used the repair table attachment in PHPmyadmin. And all of that worked! So now i am a happy man again.
Reply With Quote
  #6  
Old 01-30-2003, 01:02 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


good to hear
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05680 seconds
  • Memory Usage 2,248KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete