Hello,
i have a file containing all the statements needed to create the database:
this is roughly my code:
try (InputStream in = DatabaseManager.class.getResourceAsStream("/db.sql")) {
String initScript = IOUtils.toString(in, "UTF-8");
context.execute(initScript);
.....
but i always get an exception:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You
have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'USE `..` ;
the script works in the mysql-workbench, so it should not be his fault.
Since this is pretty trivial code i don`t know what i am doing wrong.
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.