Results 1 to 7 of 7

Thread: my dashboard database table doesn't exist

  1. #1
    scorecomms is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    23

    Default my dashboard database table doesn't exist

    Somehow, overnight, the mysql database table for the dashboard has been deleted. I keep getting this error:

    Error running count query for Dashboard List: Query Failed: SELECT count(*) c FROM dashboards where (dashboards.assigned_user_id='1') AND dashboards.deleted=0::MySQL error 1146: Table '####.dashboards' doesn't exist

    does anyone have a mysql dump file that I could have or use to recreate this table with the necesarry fields etc.?

    Am using sugarcrm community edition 5.5.0 (Build 6653)

    thanks

  2. #2
    scorecomms is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    23

    Default Re: my dashboard database table doesn't exist

    can anyone help me?

  3. #3
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: my dashboard database table doesn't exist

    Hi,

    This is structure of the dashboards table

    HTML Code:
    CREATE TABLE IF NOT EXISTS `dashboards` (
      `id` char(36) NOT NULL,
      `deleted` tinyint(1) NOT NULL DEFAULT '0',
      `date_entered` datetime NOT NULL,
      `date_modified` datetime NOT NULL,
      `modified_user_id` char(36) NOT NULL,
      `assigned_user_id` char(36) DEFAULT NULL,
      `created_by` char(36) DEFAULT NULL,
      `name` varchar(100) DEFAULT NULL,
      `description` text,
      `content` text,
      PRIMARY KEY (`id`),
      KEY `idx_dashboard_name` (`name`,`deleted`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    Letrium ltd. - Only high quality service
    http://letrium.com

  4. #4
    scorecomms is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    23

    Default Re: my dashboard database table doesn't exist

    Quote Originally Posted by AlexAv View Post
    Hi,

    This is structure of the dashboards table

    HTML Code:
    CREATE TABLE IF NOT EXISTS `dashboards` (
      `id` char(36) NOT NULL,
      `deleted` tinyint(1) NOT NULL DEFAULT '0',
      `date_entered` datetime NOT NULL,
      `date_modified` datetime NOT NULL,
      `modified_user_id` char(36) NOT NULL,
      `assigned_user_id` char(36) DEFAULT NULL,
      `created_by` char(36) DEFAULT NULL,
      `name` varchar(100) DEFAULT NULL,
      `description` text,
      `content` text,
      PRIMARY KEY (`id`),
      KEY `idx_dashboard_name` (`name`,`deleted`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    Thank you so much! Lifesaver

  5. #5
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: my dashboard database table doesn't exist

    Glad to be help
    Letrium ltd. - Only high quality service
    http://letrium.com

  6. #6
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: my dashboard database table doesn't exist

    Another option is to run a Quick Repair. It'll sync your database with your vardefs. If havent deleted the vardefs files, the application will re-create the missing tables.
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

  7. #7
    scorecomms is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    23

    Default Re: my dashboard database table doesn't exist

    Hi, I've just got round to doing this now. Thanks again. However I now have this error when I go to the dashboard:

    Query Failed:INSERT into dashboards set ::MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

    any help please anyone? thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Table calls_users doesn't exist
    By jimrising in forum Help
    Replies: 10
    Last Post: 2009-03-25, 03:54 AM
  2. Table tracker_sessions doesn't exist
    By unvisible in forum Developer Help
    Replies: 8
    Last Post: 2009-02-12, 02:22 AM
  3. Replies: 0
    Last Post: 2006-02-20, 10:20 AM
  4. Metadata for table users does not exist
    By TMiller in forum Help
    Replies: 6
    Last Post: 2006-02-15, 04:41 PM
  5. where modify a exist table
    By threestone in forum Developer Help
    Replies: 0
    Last Post: 2005-10-26, 02:11 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
  •