I was able to successfully upgrade my test Zabbix 1.6.7 system to 1.8.
I tried the same procedure on my production system and got a failure when running the database patch. Here is the error.
I have found it to be this table creation line:
I am running MySQL 5.0.67 on OpenSuse 11.1. For now I've had to restore my database and recompile the 1.6.7 version to get production back and working. I'm not quite sure why the same procedure worked in test but not production. Both boxes run the same version of mysql and linux.
I tried the same procedure on my production system and got a failure when running the database patch. Here is the error.
ERROR 1064 (42000) at line 49: 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 6
Failed to patch Zabbix database. Restore from backup
Failed to patch Zabbix database. Restore from backup
CREATE TABLE expressions (
expressionid bigint unsigned DEFAULT '0' NOT NULL,
regexpid bigint unsigned DEFAULT '0' NOT NULL,
expression varchar(255) DEFAULT '' NOT NULL,
expression_type integer DEFAULT '0' NOT NULL,
exp_delimiter varchar(1) DEFAULT '' NOT NULL,
case_sensitive integer DEFAULT '0' NOT NULL,
PRIMARY KEY (expressionid)
) type=InnoDB;
expressionid bigint unsigned DEFAULT '0' NOT NULL,
regexpid bigint unsigned DEFAULT '0' NOT NULL,
expression varchar(255) DEFAULT '' NOT NULL,
expression_type integer DEFAULT '0' NOT NULL,
exp_delimiter varchar(1) DEFAULT '' NOT NULL,
case_sensitive integer DEFAULT '0' NOT NULL,
PRIMARY KEY (expressionid)
) type=InnoDB;
Comment