Results 1 to 7 of 7

Thread: mysql 1054 - weird problem

  1. #1
    marjant is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default mysql 1054 - weird problem

    Hello cool people.

    When I create new user, everything goes smoothly.

    When I try to edit the user (the same one or another it does not matter), whatever field I write something to, I get this:

    Query Failed:Update users set user_name='laura.david', user_hash='9a871a2a1b44ce36da856605dd3c446c', authenticate_id=null, sugar_login='1', first_name='Laura', last_name='David', reports_to_id=null, is_admin='0', receive_notifications='1', description=null, date_modified='2009-02-10 10:46:18', modified_user_id='1', created_by='1b133003-2cbe-5564-eaee-485fbfd98ea8', title='Sales Support', department=null, phone_home=null, phone_mobile=null, phone_work=null, phone_other=null, phone_fax=null, status='Active', address_street=null, address_city=null, address_state=null, address_country=null, address_postalcode=null, user_preferences=null, deleted='0', portal_only='0', employee_status='Active', messenger_id=null, messenger_type=null, is_group='0', default_team=null WHERE ID = '3853a72b-c8fb-225f-16b5-4947d64fb811'::MySQL error 1054:

    Can someone tell me where to look for the solution for this? What exactly is the error? How come I can do everything except write something for the second time?

    Thank you very much for helping me,
    Marjan

  2. #2
    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: mysql 1054 - weird problem

    Hi marjant

    Copy this query and execute it int phpMyAdmin
    Let us know the error reported by phpMyAdmin

    Kind regards
    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.

  3. #3
    marjant is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default Re: mysql 1054 - weird problem

    from mysql prompt:

    mysql> Update users set user_name='laura.david', user_hash='9a871a2a1b44ce36da856605dd3c446c', authenticate_id=null, sugar_login='1', first_name='Laura', last_name='David', reports_to_id=null, is_admin='0', receive_notifications='1', description=null, date_modified='2009-02-10 10:46:18', modified_user_id='1', created_by='1b133003-2cbe-5564-eaee-485fbfd98ea8', title='Sales Support', department=null, phone_home=null, phone_mobile=null, phone_work=null, phone_other=null, phone_fax=null, status='Active', address_street=null, address_city=null, address_state=null, address_country=null, address_postalcode=null, user_preferences=null, deleted='0', portal_only='0', employee_status='Active', messenger_id=null, messenger_type=null, is_group='0', default_team=null WHERE ID = '3853a72b-c8fb-225f-16b5-4947d64fb811';

    ERROR 1054 (42S22): Unknown column 'default_team' in 'field list'

    Now I suspect it is a CE Teams module related thing which I just installed. http://www.sugarforge.org/projects/ce-teams

    I asked the developers for help, but if you or someone else can give some advice I will be thankful.

    Thank you,
    Marjan

  4. #4
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: mysql 1054 - weird problem

    Go to "Admin -> Repair -> Quick Repair and Rebuild " and do the repair for Users module. This will fix the problem.

  5. #5
    marjant is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default Re: mysql 1054 - weird problem

    Quote Originally Posted by crmsiva View Post
    Go to "Admin -> Repair -> Quick Repair and Rebuild " and do the repair for Users module. This will fix the problem.
    This is what I get when trying this:

    Executing repair query: Query Failed:ALTER TABLE accounts add column team_id char(36) NULL ALTER TABLE users add column default_team char(36) NULL ALTER TABLE users add column default_team char(36) NULL ALTER TABLE users add column default_team char(36) NULL::MySQL error 1064:

    Thank you for your answers,
    Marjan

  6. #6
    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: mysql 1054 - weird problem

    Quote Originally Posted by marjant View Post
    This is what I get when trying this:

    Executing repair query: Query Failed:ALTER TABLE accounts add column team_id char(36) NULL ALTER TABLE users add column default_team char(36) NULL ALTER TABLE users add column default_team char(36) NULL ALTER TABLE users add column default_team char(36) NULL::MySQL error 1064:

    Thank you for your answers,
    Marjan
    Which version are you using?
    This is known bug in the older 5.x version.
    When Repairing Database add a semi-colon ";" before the second "ALTER TABLE".

    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.

  7. #7
    marjant is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default Re: mysql 1054 - weird problem

    Quote Originally Posted by andopes View Post
    Which version are you using?
    This is known bug in the older 5.x version.
    When Repairing Database add a semi-colon ";" before the second "ALTER TABLE".

    Cheers
    Here is what I did to fix this if anyone else has the same problem.

    in mysql prompt you type this (you can also do it in phpmyadmin but I don't use that)

    ALTER TABLE accounts add column team_id char(36) NULL /* Table : users */;
    then Enter

    ALTER TABLE users add column default_team char(36) NULL /* Table : users */;
    then Enter

    and you are ready to go.

    Thank you all for your suggestions,
    Marjan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MySQL Error 1054??
    By jervin in forum Help
    Replies: 18
    Last Post: 2009-03-26, 02:52 PM
  2. MySQL error 1054
    By shailendra001 in forum Developer Help
    Replies: 4
    Last Post: 2009-02-05, 09:48 PM
  3. MySQL error 1054
    By dionysus in forum Installation and Upgrade Help
    Replies: 25
    Last Post: 2008-05-29, 06:16 PM
  4. MySQL Error 1054 - Leads
    By Angel in forum Downloads
    Replies: 0
    Last Post: 2007-06-20, 09:11 PM
  5. 4.2: MySQL error 1054 in Contacts
    By adilwali in forum Help
    Replies: 1
    Last Post: 2006-04-06, 03:36 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
  •