5.5.2.1. Connecting with Squirrel SQL

SQuirreL SQL Client is an open-source Java application that allows working with databases via JDBC. You can download Squirrel SQL here: http://squirrel-sql.sourceforge.net.

Start Squirrel SQL and go to Drivers. Right-click HSQLDB Server in the drivers list, and choose Modify Driver.

Figure 5.6. 


Go to the Extra Class Path tab in the window that appears, and click the Add button to add the .jar file with the driver.

Figure 5.7. 


Then you need to select the hsqldb-x.x.x.jar, driver, which you should download from HSQLDB website in advance. If you are using HyperSQL only for CUBA development, then you can add the driver supplied as part of CUBA Studio (it is located in the lib subfolder).

Figure 5.8. 


Next, create the alias for connection to the application database.

Figure 5.9. 


Fill in the connection properties in the window that appears: Database URL, username and password. The default user name is "sa", the password is empty. The database URL can be copied from the Project properties tab in CUBA Studio, or from the modules/core/web/META-INF/context.xml file of the project.

Figure 5.10.