Closed GoogleCodeExporter closed 9 years ago
Just change the order of your create table statements, and it will work in both
H2 and MySQL.
Original comment by noelgrandin
on 15 Jul 2013 at 6:34
We are having the same problem. We dumped a MySQL schema to file and try to
import it into H2. fails for that reason. Rearranging the tables by hand is not
an option. Besides, it's impossible because we have circular dependencies. Yes,
we could re-write them as ALTER TABLE statements, but it's supposed to be an
automated process. Hope you can reconsider this and open it up for fixing.
Original comment by jan.christopher.vogt@gmail.com
on 7 Jul 2014 at 11:48
I think it's better to use "alter table" statements, as this works with any
database. I believe your solution only really works with MySQL, and no other
database.
As a workaround could you run the script multiple times (ignoring errors),
until you have all tables?
> We dumped a MySQL schema to file
I guess you used the MySQL tool to do that. Could you use a different tool, for
example http://dbcopyplugin.sourceforge.net/ - but I'm not sure if there a
command line tool for that
Original comment by thomas.t...@gmail.com
on 7 Jul 2014 at 11:58
Original issue reported on code.google.com by
queeq...@gmail.com
on 12 Jul 2013 at 5:22