Results 1 to 3 of 3

Thread: Index mismatch with database

  1. #1
    clairec is offline Junior Member
    Join Date
    Jul 2010
    Posts
    1

    Default Index mismatch with database

    I am using Version: 5.5.0 Community Edition

    I can see Accounts in my SugarCRM database; however the Accounts do not show up in ListView, Dashlets or when I do a search to connect to a new Lead or Contact.

    Accounts do not show up in the Accounts tab and I've cleared my search parameters in Search & Advanced Search.

    I've gone into phpMyAdmin, but the missing VarDef is not part of my selection options.... I would truly like to see a screenshot of how a basic Account's Indexes table should look...that would enable me to see where my setup went wrong.

    I've gone through the Admin-Repair sessions and this is what it has rendered

    /* Table : accounts */
    /*COLUMNS*/
    /* INDEXES */
    /*INDEX MISMATCH WITH DATABASE - idx_accnt_id_del - ROW <name> idx_accnt_id_del <type> index <fields>[0] => 'deleted' */
    /* VARDEF - idx_accnt_id_del - ROW<name> idx_accnt_id_del <type> index <fields>[0] => 'id' [1] => 'deleted' */
    /*INDEX MISMATCH WITH DATABASE - idx_accnt_parent_id - ROW <name> idx_accnt_parent_id <type> index <fields>[0] => 'parent_id' [1] => 'deleted' */
    /* VARDEF - idx_accnt_parent_id - ROW<name> idx_accnt_parent_id <type> index <fields>[0] => 'parent_id' */
    ALTER TABLE accounts DROP INDEX idx_accnt_id_del , ADD INDEX idx_accnt_id_del (id, deleted), DROP INDEX idx_accnt_parent_id , ADD INDEX idx_accnt_parent_id (parent_id);

    Any help would be appreciated, this is my first post.

    Thank you!

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Index mismatch with database

    Hi,

    I would suggest echoing the list view query and run the same in phpmyadmin to see if there is something wrong.

    Sometimes sorting fails and returns empty result too!

    To echo the list query -> include/ListView/ListViewData.php

    Search for $main_query around line # 296
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    geraldobh is offline Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Default Re: Index mismatch with database

    I had the same problem! I made a manual update on database:

    UPDATE accounts SET deleted = '0' WHERE account_type ='Customer'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Database/Installation Mismatch?
    By petruzzo in forum Help
    Replies: 1
    Last Post: 2010-04-16, 05:15 AM
  2. Quick Repair and Rebuild - Mismatch with Database
    By jeffbrumbaugh in forum Help
    Replies: 2
    Last Post: 2010-03-24, 11:31 AM
  3. Database and vardef mismatch
    By shamimwilson in forum Developer Help
    Replies: 20
    Last Post: 2009-07-21, 05:37 PM
  4. about database repair(mismatch in sugar)
    By ashiwebi in forum Developer Help
    Replies: 3
    Last Post: 2009-03-02, 11:07 AM
  5. Account-Contact Mismatch
    By willisbueller in forum Help
    Replies: 4
    Last Post: 2006-06-13, 01:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •