Ad Widget

Collapse

MySQL create/data/data.sql ERROR in 1.5 rev 5865

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #1

    MySQL create/data/data.sql ERROR in 1.5 rev 5865

    I believe I have found a bug with this revision. Can anyone confirm before I file a bug report?

    Thanks!
    Code:
    # mysql -uzabbix -p zabbix <  create/data/data.sql 
    Enter password: 
    ERROR 1136 (21S01) at line 6603: Column count doesn't match value count at row 1
    I have line 6603 to be:
    Code:
    INSERT INTO sysmaps_elements VALUES (2,2,10017,0,19,19,19,'ZABBIX Server',NULL,100,100,'');
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this. Please do not fill any bug reports yet. We are very close to 1.5.4, this issue will be fixed shortly.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • cstackpole
      Senior Member
      Zabbix Certified Specialist
      • Oct 2006
      • 225

      #3
      OK, a bit of MySQL digging around in past revisions revealed that there was an extra field added to the table sysmaps_elements.
      Code:
      | iconid_disabled | bigint(20) unsigned | NO   |     | 0       |       |
      So I changed this:
      Code:
      INSERT INTO sysmaps_elements VALUES (2,2,10017,0,19,19,19,'ZABBIX Server',NULL,100,100,'');
      to this:
      Code:
      mysql> INSERT INTO sysmaps_elements VALUES (2,2,10017,0,19,19,19,'ZABBIX Server',NULL,100,100,'',0);
      Query OK, 1 row affected (0.01 sec)
      and it worked. Of course I don't know if that is the proper value, but it at least works in the SQL.

      [EDIT] I just saw your post Alexei. So I will not file a report. Thanks!

      Comment

      • Sasha
        Zabbix developer
        • Sep 2007
        • 60

        #4
        Thank you! Fixed in rev. 5872.
        ZABBIX Developer
        Riga, Latvia

        Comment

        Working...