While upgrading from 1.1 (Ubuntu Feisty Server) to Zabbix 1.4.2, I encountered a small glitch in patch.sql
On line 695, the code reads:
--insert into rights_tmp select * from rights
When trying to import patch.sql through PHPMyAdmin, you'll get an error. The solution is quite simple: place a space between '--' and 'insert':
– insert into rights_tmp select * from rights
After that, the patch imports without a hitch...
Just my 2 cents,