# Creating and accessing a database

You create a database by supplying a new database name in the connection URL and specifying create=true.

Derby creates a new database inside a new subdirectory in the system directory. This system directory has the same name as the new database. If you specify a partial path, it is relative to the system directory. You can also specify an absolute path.

    jdbc:derby:databaseName;create=true

For more details about create=true, see "create=true" in the Java DB Reference Manual.

Parent topic: Working with the database connection URL attributes
Related tasks
Providing a user name and password
Encrypting a database when you create it
Booting an encrypted database
Specifying attributes in a properties object
Related reference
Using the databaseName attribute