I am trying to embed h2 database to my spring appplication by setting the following in applicationcontext.xml
<jdbc:embedded-database id="embeddedDataSource" type="H2"> <jdbc:script location="classpath:data.sql"/> </jdbc:embedded-database> When am executing it it shows the syntax error in data.sql file.But this file is a backup file from the working mysql database.Does the h2 support mysql backup script files.Can any one give me an example for the h2 script file.
The error it shows is
Syntax error in sql statement "create database[*] ""test"" ";expected "OR,FORCE,VIEW,ALIAS,SEQUENCE,USER,TRIGGER,ROLE,SCHEMA,CONSTANT"; sql statement: My data.sql contains
create database 'test';