Ad Widget

Collapse

MySQL 5.5: type=InnoDB to ENGINE=InnoDB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • proctozont
    Junior Member
    • May 2007
    • 8

    #1

    MySQL 5.5: type=InnoDB to ENGINE=InnoDB

    MySQL 5.5 doesn't support "type" table option, instead it uses ENGINE option.

    Below shell script to change schema/mysql.sql to newer format.

    Code:
    [COLOR=#000000]sed 's/type=InnoDB/ENGINE=InnoDB/g' schema/mysql.sql > /tmp/mysql.sql
    rm schema/mysql.sql
    cp /tmp/mysql.sql schema/mysql.sql
    [/COLOR]
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It is already fixed in pre 1.8.3.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • 0siris
      Member
      Zabbix Certified Specialist
      • Nov 2010
      • 76

      #3
      and yet I am facing this right now, in zabbix-1.8.5.tar.gz:
      Code:
       grep type=InnoDB ./upgrades/dbpatches/1.6/mysql/patch.sql | sort | uniq
      ) type=InnoDB;

      updatescripts now run without problems (both the 1.6 updatescript and the 1.8 updatescript)
      Last edited by 0siris; 16-05-2011, 23:43.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        oh. well, it was only fixed for schema
        changing that for upgrade scripts should be discussed - could you please create a new issue in the tracker ? thanks.
        Zabbix 3.0 Network Monitoring book

        Comment

        • 0siris
          Member
          Zabbix Certified Specialist
          • Nov 2010
          • 76

          #5
          Done.
          ... filling this post to meet 10 char quota

          Comment

          Working...