I have an init script for my MySQL database but for test purposes I wan't to use a H2 database. Anyone knows how to convert the file or at least has a list of the syntax differences ? thanks.
Here is a good instruction by Matthew Casperson
Here is a short list of steps, to convert from mysql to h2:
Fix up single quotes
CREATE TABLE `user` (
`name` varchar(20) NOT NULL,
convert to
CREATE TABLE user
(
name
varchar(20) NOT NULL,
Fix up hex numbers
Fix up bits
Don't include ranges in keys
Remove character sets (remove CHARACTER SET ...)
Remove COLLATE settings (f.e. COLLATE utf8_unicode_ci)
Remove indexes on BLOBS, CLOBS and TEXT fields
Make all index names unique
Use the MySQL compatibility mode (jdbc:h2:~/test;MODE=MySQL)