# The Java EE 7 Tutorial

# 2.4 Starting and Stopping the Java DB Server

GlassFish Server includes the Java DB database server.

To start the Java DB server from the command line, open a terminal window or command prompt and execute:

    asadmin start-database

To stop the Java DB server from the command line, open a terminal window or command prompt and execute:

    asadmin stop-database

For information about the Java DB included with GlassFish Server, see `http://www.oracle.com/technetwork/java/javadb/overview/index.html`.

## 2.4.1 To Start the Database Server Using NetBeans IDE

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.

1. Click the Services tab.

2. Expand Databases.

3. 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.