Come utilizzare il frontend della gestione integrata H2 database?Strumento di frontend per gestire il database H2
Per operazioni come creare tabella, modificare tabella, aggiungere colonna e così via.
Come utilizzare il frontend della gestione integrata H2 database?Strumento di frontend per gestire il database H2
Per operazioni come creare tabella, modificare tabella, aggiungere colonna e così via.
Mi piace SQuirreL SQL Client e NetBeans è utile anche senza il piacevole plugin, discusso here; ma più spesso, mi basta accendere la porta built-in org.h2.tools.Server
e sfogliare 8082:
$ java -cp /opt/h2/bin/h2.jar org.h2.tools.Server -help Starts the H2 Console (web-) server, TCP, and PG server. Usage: java org.h2.tools.Server When running without options, -tcp, -web, -browser and -pg are started. Options are case sensitive. Supported options are: [-help] or [-?] Print the list of options [-web] Start the web server with the H2 Console [-webAllowOthers] Allow other computers to connect - see below [-webPort ] The port (default: 8082) [-webSSL] Use encrypted (HTTPS) connections [-browser] Start a browser and open a page to connect to the web server [-tcp] Start the TCP server [-tcpAllowOthers] Allow other computers to connect - see below [-tcpPort ] The port (default: 9092) [-tcpSSL] Use encrypted (SSL) connections [-tcpPassword ] The password for shutting down a TCP server [-tcpShutdown ""] Stop the TCP server; example: tcp://localhost:9094 [-tcpShutdownForce] Do not wait until all connections are closed [-pg] Start the PG server [-pgAllowOthers] Allow other computers to connect - see below [-pgPort ] The port (default: 5435) [-baseDir ] The base directory for H2 databases; for all servers [-ifExists] Only existing databases may be opened; for all servers [-trace] Print additional trace information; for all servers
In 1.4, si esegue la console con 'java -jar/opt/h2/bin/h2.jar'. – approxiblue
Considerare anche 'java -cp /opt/h2/bin/h2.jar org.h2.tools.Shell'. – trashgod
Come circa il H2 console application?
+0 e.g. 'java -cp h2 * .jar org.h2.tools.Console' –
L'applicazione della console è ottima e si può accedere all'indirizzo http: http: // localhost: 8082/ –
Sotto eclissi (se si ha la dipendenza da H2, tramite Maven per esempio) apri la classe 'org.h2.tools.Console', quindi fai clic con il pulsante destro del mouse e" esegui come applicazione Java " – pdem
io uso sql-workbench per lavorare con H2 e qualsiasi altro DBMS devo affrontare e mi fa sorridere :-)
Lo sto usando con derby – blueray
una discutere trovato here
citazione da Thomas Mueller:
http://www.dbsolo.com/
http://www.minq.se/products/dbvis/
http://executequery.org/index.jsp
http://sqldeveloper.solyp.com/index.html
http://sql-workbench.net/index.html
http://www.squirrelsql.org/
vorrei suggerire DBEAVER .it si basa su Eclipse e supporta la gestione
vorrei suggerire IDE Jetbrain dati migliori: DataGrip https://www.jetbrains.com/datagrip/
C'è un client shell costruita nel troppo che è maneggevole.
java -cp h2*.jar org.h2.tools.Shell
http://opensource-soa.blogspot.com.au/2009/03/how-to-use-h2-shell.html
$ java -cp h2.jar org.h2.tools.Shell -help
Interactive command line tool to access a database using JDBC.
Usage: java org.h2.tools.Shell <options>
Options are case sensitive. Supported options are:
[-help] or [-?] Print the list of options
[-url "<url>"] The database URL (jdbc:h2:...)
[-user <user>] The user name
[-password <pwd>] The password
[-driver <class>] The JDBC driver class to use (not required in most cases)
[-sql "<statements>"] Execute the SQL statements and exit
[-properties "<dir>"] Load the server properties from this directory
If special characters don't work as expected, you may need to use
-Dfile.encoding=UTF-8 (Mac OS X) or CP850 (Windows).
See also http://h2database.com/javadoc/org/h2/tools/Shell.html
Se si esegue come un database incorporato in primavera Io uso la seguente configurazione per abilitare il costruito nel client Web quando l'applicazione principale è in esecuzione:
<!-- Run H2 web server within application that will access the same in-memory database -->
<bean id="h2Server" class="org.h2.tools.Server" factory-method="createTcpServer" init-method="start" destroy-method="stop" depends-on="h2WebServer">
<constructor-arg value="-tcp,-tcpAllowOthers,-tcpPort,9092"/>
</bean>
<bean id="h2WebServer" class="org.h2.tools.Server" factory-method="createWebServer" init-method="start" destroy-method="stop">
<constructor-arg value="-web,-webAllowOthers,-webPort,8082"/>
</bean>
Uso molto DbVisualizer per l'amministrazione H2-db.
Esiste una versione gratuita:
visitare il sito web di H2 per un elenco di [Frontend di database/Strumenti] (http://h2database.com/html/links.html#tools) . –
Il posto più appropriato per questa domanda si trova sullo [Scambio stack raccomandazioni software] (http://softwarerecs.stackexchange.com/). Ma qui devi delineare criteri specifici per ciò che intendi per "il migliore". –