asadmin start-database
Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial |
Previous | Next | Contents |
GlassFish Server includes Apache Derby.
To start Derby from the command line, open a terminal
window or command prompt, change to the as-install/bin
directory, and execute:
asadmin start-database
To stop Derby from the command line, open a terminal window
or command prompt, change to the as-install/bin
directory, and execute:
asadmin stop-database
For information about Apache Derby included with GlassFish Server, see
the Release Notes that are located in the as-install/javadb/
directory.
When you start GlassFish Server using NetBeans IDE, the database server starts automatically. If you ever need to start the server manually, however, follow these steps.
Click the Services tab.
Expand Databases.
Right-click Java DB and select Start Server.
Next Steps
To stop the database using NetBeans IDE, right-click Java DB and select Stop Server.
Previous | Next | Contents |