Приветствую
делаю апгрейд базы (mysql-server-5.1.42)
mysql -u user -p
use zabbix;
alter table dhosts drop index dhosts_1;
alter table dservices drop index dservices_1;
alter table httptest drop index httptest_2;
alter table httptest drop index httptest_3;
alter table history_log drop index history_log_2;
alter table history_text drop index history_text_2;
alter table actions drop index actions_1;
alter table escalations drop index escalations_2;
alter table graphs_items drop index graphs_items_1;
alter table graphs_items drop index graphs_items_2;
alter table services drop index services_1;
потом
mysql zabbix -u root < /usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.1/upgrades/dbpatches/1.8/mysql/patch.sql
получаю
ERROR 1061 (42000) at line 1: Duplicate key name 'actions_1'
потом
alter table actions drop index actions_1;
повторяю
mysql zabbix -u root < /usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.1/upgrades/dbpatches/1.8/mysql/patch.sql
получаю
ERROR 1050 (42S01) at line 2: Table 'auditlog_details' already exists
в сиквеле не силен
что я делаю не так?
Спасибо
делаю апгрейд базы (mysql-server-5.1.42)
mysql -u user -p
use zabbix;
alter table dhosts drop index dhosts_1;
alter table dservices drop index dservices_1;
alter table httptest drop index httptest_2;
alter table httptest drop index httptest_3;
alter table history_log drop index history_log_2;
alter table history_text drop index history_text_2;
alter table actions drop index actions_1;
alter table escalations drop index escalations_2;
alter table graphs_items drop index graphs_items_1;
alter table graphs_items drop index graphs_items_2;
alter table services drop index services_1;
потом
mysql zabbix -u root < /usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.1/upgrades/dbpatches/1.8/mysql/patch.sql
получаю
ERROR 1061 (42000) at line 1: Duplicate key name 'actions_1'
потом
alter table actions drop index actions_1;
повторяю
mysql zabbix -u root < /usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.1/upgrades/dbpatches/1.8/mysql/patch.sql
получаю
ERROR 1050 (42S01) at line 2: Table 'auditlog_details' already exists
в сиквеле не силен
что я делаю не так?
Спасибо
Comment