Alte mandant.sql importieren?
-
Hallo,
ich habe noch eine Sicherung eines Mandanten in der Version 0.9.7-1. Wie kann ich diese Datenbank in ein 0.9.8-2 importieren?Einfach die Daten mit phpmyadmin in eine MandantenDB importieren und dann idoit updaten schlägt leider fehl.
-
Von 0.9.7-1 kann nicht direkt auf 0.9.8-2 geupdatet werden.
Am besten du machst dir eine separate 0.9.7-1 installation, knallst die Datenbanken aus der Sicherung drüber und Updatest dann auf 0.9.8-1. Und dann erst auf 0.9.8-2 -
Genau das habe ich befürchtet.
-
Habe gerade die alte Version auf 0.9.8-2 hochgezoegen und die Daten exportiert.
Beim Import in die neue DB kann folgender Fehler:-- -- Constraints der Tabelle `isys_catg_accounting_list` -- ALTER TABLE `isys_catg_accounting_list` ADD CONSTRAINT `isys_catg_accounting_list_ibfk_1` FOREIGN KEY ( `isys_catg_accounting_list__isys_catg_accounting__id` ) REFERENCES `isys_catg_accounting` ( `isys_catg_accounting__id` ) ON DELETE NO ACTION ON UPDATE NO ACTION , ADD CONSTRAINT `isys_catg_accounting_list_ibfk_2` FOREIGN KEY ( `isys_catg_accounting_list__isys_guarantee_period_unit__id` ) REFERENCES `isys_guarantee_period_unit` ( `isys_guarantee_period_unit__id` ) ON DELETE NO ACTION ON UPDATE NO ACTION , ADD CONSTRAINT `isys_catg_accounting_list_ibfk_3` FOREIGN KEY ( `isys_catg_accounting_list__isys_contact__id` ) REFERENCES `isys_contact` ( `isys_contact__id` ) ON DELETE SET NULL ON UPDATE NO ACTION ; MySQL meldet: Dokumentation #1452 - Cannot add or update a child row: a foreign key constraint fails (`idoit_ek17/#sql-c49_9cc`, CONSTRAINT `isys_catg_accounting_list_ibfk_3` FOREIGN KEY (`isys_catg_accounting_list__isys_contact__id`) REFERENCES `isys_contact` (`isys_contact__id`) ON DELETE SE) -
Vor dem Import die foreign key checks deaktiveren
set foreign_key_checks = 0; -
Vielen Dank, das hat funktioniert.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login