How to convert H2Database database file to MySQL database .sql file?

后端 未结 5 1436
你的背包
你的背包 2021-02-01 10:41

I have some data in H2Database file and I want to convert it to MySQL .sql database file. What are the methods I can follow?

5条回答
  •  盖世英雄少女心
    2021-02-01 11:26

    The SQL script generated by the H2 database is not fully compatible with the SQL supported by MySQL. You would have to change the SQL script manually. This requires that you know both H2 and MySQL quite well.

    To avoid this problem, an alternative, probably simpler way to copy the data from H2 to MySQL is to use a 3rd party tool such as the SQuirreL SQL together with the SQuirreL DB Copy Plugin plugin. (First you need to install SQuirreL SQL and on top of that the SQuirreL DB Copy Plugin.)

提交回复
热议问题