• Subcribe to Our RSS Feed

Just Finished Some Fixes at my Comment Database

Jul 28, 2008 by     11 Comments    Posted under: Wordpress

This post is intended to share some fixes that I have Done.

I have seen this comment in yellow at my database : See Pictures below

More than one INDEX key was created for column `comment_approved’

Problem : When Commenting in my blog it will redirect you to 404 Page then after refreshing the page it will again go back to the page but sometime comments are not shown.

Solution : I went to Database PHP My Admin then drop the [ comment_approved_date_gmt ] & [ comment_approved ] from the following Indexes as shown in below as part of your Database wp_comments.More than one INDEX key was created for column `comment_approved

I am not expert in this database thing but I tried to delete one of them and there are still problems. And when I delete all index, My dashboard acts strange so as per my trial and error, dropping { or deleting } [ comment_approved_date_gmt ] & [ comment_approved ] is the best solution. If you encounter error while commenting please let me know and I will try to resolve it.

BTW I have WordPress 2.6 in my system. I believed this is some issues with some of my plug-ins. I don’t know well, at least it is fix for now.

11 Comments + Add Comment

  • […] the majority of the data for the site comes from MySQL, this was the first place I looked.  This post shows what my comments table looked like exactly.  Since there is already an index for comment_approved and comment_date_gmt, the index […]

  • FYI, I tried doing as you suggested, but it did not help. I dropped just the [ comment_approved_date_gmt ] & [ comment_approved ] indexes and I still get the 404 page. 🙁

    • @Steve,

      This solution is for wordpress 2.6 it might not work thru your present WP version

  • @timmy77

    You can only dropped the comments if its duplicated. But if not you must not drop it.. As of now Akismet is still doing fine.. and comments can also be moderated

  • “went to Database PHP My Admin then drop the [ comment_approved_date_gmt ] & [ comment_approved ]”

    Ok.. but doesn’t this affect moderation of comments. Can you still moderate comments after you droped them?!

  • @ Gusher,

    How I wish I can be a programmer pero mukhang mahirap na yan sa stage ko ha ha ha.. medyo may edad na.

    @ Did You Know?

    Anong klaseng programmer.. Programmer ….hhmm.. television he he he

  • congratz kuya dexter, pedeng pede kna maging programmer o database administrator – or you’re already one, hehhe, 😉

    – it’s gusher

    2008 Beijing Olympics – Medal Tally Updates and Resultss last blog post..SEO Makes More Money

  • @ Did You Know?

    Oo nga at last he he he, One good thing happen I was able to understand how this database things work..

    @ Amy,

    When I tried to reply on the comments I saw this error that is why I immediately search for the errors..

    and luckily I found it..

  • uu nga. Programmer yan c kuya dexter. hehe

  • kaya pala kahapon nag error 404 nung nag comment ako 🙂

    Amys last blog post..WordCamp Philippines 2008

  • congratz at nafixed mo na..hehe. God bless!

Got anything to say? Go ahead and leave a comment!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>