[Bug 8471] New: loading an sql file into mysql, often fails when loading the 'letter' table
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 Priority: P5 - low Change sponsored?: --- Bug ID: 8471 Assignee: gmcharlt@gmail.com Summary: loading an sql file into mysql, often fails when loading the 'letter' table Severity: trivial Classification: Unclassified OS: All Reporter: mtj@kohaaloha.com Hardware: All Status: NEW Version: master Component: Database Product: Koha loading an sql file into mysql, often fails when loading the 'letter' table i have no idea why. the quick-fix is to drop - then create the database $ mysql koha_test < koha.sql ERROR 1005 (HY000) at line 3237: Can't create table 'koha_test.letter' (errno: 150) http://koha.1045719.n5.nabble.com/MySQL-Database-Restoring-Problem-from-3-4-... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 --- Comment #1 from Mason James <mtj@kohaaloha.com> --- (In reply to comment #0)
loading an sql file into mysql, often fails when loading the 'letter' table
i have no idea why. the quick-fix is to drop - then create the database
$ mysql koha_test < koha.sql ERROR 1005 (HY000) at line 3237: Can't create table 'koha_test.letter' (errno: 150)
http://koha.1045719.n5.nabble.com/MySQL-Database-Restoring-Problem-from-3-4- x-to-3-8-0-td5710925.html
hmmm, i bumped into this problem again... 'show engine innodb status' hints that its a foreign-key problem? ------------------------ LATEST FOREIGN KEY ERROR ------------------------ 121212 4:06:49 Error in foreign key constraint of table head/message_transports : there is no index in referenced table which would contain the columns as the first columns, or the data types in the referenced table do not match the ones in table. Constraint: , CONSTRAINT "message_transports_ibfk_3" FOREIGN KEY ("letter_module", "letter_c ode", "branchcode") REFERENCES "letter" ("module", "code", "branchcode") ON DELE TE CASCADE ON UPDATE CASCADE The index in the foreign key in table is "message_transports_ibfk_3" See http://dev.mysql.com/doc/refman/5.5/en/innodb-foreign-key-constraints.html for correct foreign key definition. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 --- Comment #2 from Mason James <mtj@kohaaloha.com> ---
loading an sql file into mysql, often fails when loading the 'letter' table
i have no idea why. the quick-fix is to drop - then create the database
just a little update... it seems this error is triggered when a koha-3.6 .sql file is loaded into an existing koha-3.8 database so, this is ok $ mysql koha < ./koha-3.6.sql $ mysql koha < ./koha-3.8.sql but this fails $ mysql koha < ./koha-3.8.sql $ mysql koha < ./koha-3.6.sql hope that helps someone :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 --- Comment #3 from Mason James <mtj@kohaaloha.com> ---
just a little update...
it seems this error is triggered when a koha-3.6 .sql file is loaded into an existing koha-3.8 database
ahh, thats probably a koha 3.6 .sql file, or *earlier* -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m --- Comment #4 from Jonathan Druart <jonathan.druart@biblibre.com> --- This is certainly not valid anymore. Please reopen if I am wrong. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8471 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org