Results 1 to 4 of 4

Thread: Dashboard database table query failing

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

    Default Dashboard database table query failing

    A few weeks ago my dashboards database table was deleted. Through the help of some people on here, I managed to recreate the table.

    However now I get the following error when I click on the dashboards tab:

    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

    I'm running the latest Sugarcrm community version

    any help please anyone? i assume it's to do with the table I created. Thanks

    ps. this is the code I used to recreate the dashboard 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;

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

    Default Re: Dashboard database table query failing

    could anyone help me?

  3. #3
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Dashboard database table query failing

    Try to rename da database, to not loose any data and then make a quick repair, if it doesn't work drop the new database and rename the old one back to it's name.
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

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

    Default Re: Dashboard database table query failing

    I don't understand what you're trying to say exactly. I've run a repair before and it's just not worked

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. my dashboard database table doesn't exist
    By scorecomms in forum Help
    Replies: 6
    Last Post: 2010-02-02, 04:29 PM
  2. How to display the external database table table in sugarcrm custom module
    By nagarajkonaguthi@gmail.com in forum Developer Help
    Replies: 0
    Last Post: 2009-11-19, 12:52 PM
  3. Replies: 1
    Last Post: 2008-03-13, 01:07 PM
  4. query against account table
    By stasila in forum Help
    Replies: 1
    Last Post: 2007-10-15, 07:48 PM
  5. Replies: 3
    Last Post: 2007-08-23, 10:42 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
  •