HSQL starten

  • Hab mich genau an die Anweisungen gehalten, die im PDF zum Starten der HSQL DB stehen.


    Bekomme jedoch folgende Fehlermeldung, kann mir da jemand helfen?


    java -cp lib/hsqldb.jar org.hsqldb.Server -database.0 mydb -dbname.0
    tutorial


    java -cp lib/hsqldb.jar org.hsqldb.util.DatabaseManager


    Dann stell ich ein HSQL Database Engine Server, jdbc:hsqldb:hsql://localhost/tutorial


    Oder wie muss ich das einstellen!?


    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
    at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
    at org.hsqldb.jdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at org.hsqldb.util.ConnectionDialog.createConnection(Unknown Source)
    at org.hsqldb.util.ConnectionDialog.actionPerformed(Unknown Source)
    at java.awt.Button.processActionEvent(Unknown Source)
    at java.awt.Button.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • In dem HSQL Database Manager musst du


    HSQL Database Engine Server auswählen


    als Treiber


    org.hsqldb.jdbcDriver


    eintragen


    und als url


    jdbc:hsqldb:hsql://localhost/<<DeineDatenbank>>


    eintragen.


    Username und Passwort so belassen wie sie sind.

    One never notices what has been done; one can only see what remains to be done. - Marie Curie