提交 eec8526c authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Update database creation information in documentation

上级 0d967ee9
......@@ -97,7 +97,8 @@ No, currently commercial support is not available.
<h3 id="create_database">How to Create a New Database?</h3>
<p>
By default, a new database is automatically created if it does not yet exist.
By default, a new database is automatically created if it does not yet exist when
<a href="features.html#database_url">embedded</a> URL is used.
See <a href="tutorial.html#creating_new_databases">Creating New Databases</a>.
</p>
......
......@@ -499,7 +499,8 @@ For more information about the algorithms, see
<h2 id="database_only_if_exists">Opening a Database Only if it Already Exists</h2>
<p>
By default, when an application calls <code>DriverManager.getConnection(url, ...)</code>
and the database specified in the URL does not yet exist, a new (empty) database is created.
with <a href="features.html#database_url">embedded</a> URL and the database specified in the URL does not yet exist,
a new (empty) database is created.
In some situations, it is better to restrict creating new databases, and only allow to open
existing databases. To do this, add <code>;IFEXISTS=TRUE</code>
to the database URL. In this case, if the database does not already exist, an exception is thrown when
......
......@@ -474,14 +474,18 @@ In this database, user names are not case sensitive, but passwords are.
<h2 id="creating_new_databases">Creating New Databases</h2>
<p>
By default, if the database specified in the URL does not yet exist, a new (empty)
database is created automatically. The user that created the database automatically becomes
the administrator of this database.
By default, if the database specified in the <a href="features.html#database_url">embedded</a> URL does not yet exist,
a new (empty) database is created automatically.
The user that created the database automatically becomes the administrator of this database.
</p>
<p>
Auto-creating new database can be disabled, see
Auto-creation of databases can be disabled, see
<a href="features.html#database_only_if_exists">Opening a Database Only if it Already Exists</a>.
</p>
<p>
H2 Console does not allow creation of databases by default.
If H2 Console is launched with icon in the system tray its context menu can be used to create a new database.
</p>
<h2 id="using_server">Using the Server</h2>
<p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论