Hibernate version:
3.2.6
Hi all,
i' trying for first time, SchemaExport features but there is a thing which is not clear...my code:
Code:
Configuration cfg = new Configuration();
cfg.configure("TestHibernate.cfg.xml");
new SchemaExport(cfg).create(true, true);
I have this exception:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'my_db'
Obviuosly I'm expecting that it should be Hibernate to create the db and not me....
Hibernate manual chapter 20.1 doesn't say that the user should create by hand its db then invoke ShemaExport....
So my question is, is there a way to make SchemaExport does thecreation of schema?
Thanks in advance,
best regards
Gamby