Here is a good instruction by Matthew Casperson
Exporting from MySQL to H2
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)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…