NHibernate create database Automatically for SQLite using
new SchemaUpdate(configuration).Execute(false, true);
When I try with MySQL ,I see that first I have to create a schema manually, then NHibernate create tables automatically for me.
To give more concrete example Suppose that I have a connection string
<property name="connection.connection_string">Database=mydatabase;
Data Source=localhost;User Id=x;Password=y</property>
If I do not create a new schema which has same name as Database in connection string manuelly or programatically like this :
"CREATE SCHEMA IF NOT EXISTS " + "mydatabase";
NHibernate gives me error : Unknown Database "mydatabase".
If There is a schema called "mydatabase" exist before, NHibernate create tables automatically
So here is my short question :
Is there a way for MYSQL database which NHibernate create database automatically without creating schema before in MySQL manually? If so how?