Results 1 to 4 of 4

Thread: Database Error

  1. #1
    evp
    evp is offline Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default Database Error

    HI, I was in the middle of sending out a large email campaign, when my server crashed. Now when I go into the campaign stats I receive the following error on the bottom:

    Error running count query for Campaign List: Query Failed:SELECT count(*) c FROM emailman LEFT JOIN users ON users.id = emailman.related_id and emailman.related_type ='Users' LEFT JOIN contacts ON contacts.id = emailman.related_id and emailman.related_type ='Contacts' LEFT JOIN leads ON leads.id = emailman.related_id and emailman.related_type ='Leads' LEFT JOIN prospects ON prospects.id = emailman.related_id and emailman.related_type ='Prospects' LEFT JOIN prospect_lists ON prospect_lists.id = emailman.list_id LEFT JOIN email_addr_bean_rel ON email_addr_bean_rel.bean_id = emailman.related_id and emailman.related_type = email_addr_bean_rel.bean_module and email_addr_bean_rel.deleted=0 LEFT JOIN campaigns ON campaigns.id = emailman.campaign_id LEFT JOIN email_marketing ON email_marketing.id = emailman.marketing_id where emailman.campaign_id= '5f115ce4-c699-ff95-cff3-4ac5db6a07e9' AND emailman.deleted=0 AND emailman.deleted=0::MySQL error 145: Table './evp_bd/emailman' is marked as crashed and should be repaired

    I have tried to repair the database, but I keep getting these errors.

    Any ideas on how to fix this?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Database Error

    emailman is the table that emails scheduled for sending are stored.

    you should run phpmyadmin against this table and "repair" it

    failing that ... you can empty the contents of the table ... but you'd lose all the emails still in the queue

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Database Error

    You need to repair this table, which is crashed.
    Log in into phpMyAdmin and run thes queries:

    check <database_name>
    repair <database_name>
    optimize <database_name>

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    historicslunk is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    52

    Thumbs up Re: Database Error

    Just wanted to say thank you !

    we had this issue with our 5.5rc1 db and we were very worried! I know we are not supposed to use it for production but we get ever so excited about new stuff

    We used Mysql Admin (third party not web based) tool to run the check and repair and it worked a treat!

    So thank you ever so much!!

    Sharif
    Sharif "very very helpful" George
    The Computer Help Co
    0845 260 9800

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error Installing 5.2 on 1and1 Managed Hosting Database error
    By nyichiban in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-03-04, 04:31 PM
  2. Database Error
    By devpp in forum Help
    Replies: 2
    Last Post: 2008-03-14, 11:29 AM
  3. Database error
    By rlugo in forum Help
    Replies: 7
    Last Post: 2007-10-12, 04:11 PM
  4. Database error?
    By oferw in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-02-01, 01:17 PM
  5. Replies: 1
    Last Post: 2006-06-27, 11:10 AM

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
  •