mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-04-25 05:36:14 +03:00
[GH-ISSUE #1148] How to change default h2 database to postgresql? #244
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
pull-request
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:ai
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:dark theme
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:kerberos
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @miltonchirinos44 on GitHub (Sep 13, 2022).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/1148
Hello friends, a question:
How can I change the default database h2 Database Engine to postgresql database in cloudbeaver
@kseniaguzeeva commented on GitHub (Sep 14, 2022):
The way to change the database is described in this article.
@kseniaguzeeva commented on GitHub (Sep 15, 2022):
I'm sorry, the link was wrong. Here is the correct one https://github.com/dbeaver/cloudbeaver/wiki/Server-configuration#database-configuration.
@miltonchirinos44 commented on GitHub (Sep 15, 2022):
@kseniaguzeeva,

Can you help me verifying the new configuration that I want to make from h2 to postgresql as indicated in the image, can you tell me if it is ok or not?
Is it necessary to add the username and password?
attached files
NEW POSTGRESQL DATABASE CONFIGURATION.txt
CURRENT H2 DATABASE CONFIGURATION.txt
@kseniaguzeeva commented on GitHub (Sep 16, 2022):
Here you can see the config example:
{ "server": { "serverName": "test", "serverURL": "http://localhost:8978", "expireSessionAfterPeriod": 1800000, "database": { "driver": "postgres-jdbc", "url": "jdbc:postgresql://your_local_host/cb", "user": "user_name", "password": "user_password" } } }The command example to run the instance is
docker run --name docker_name --rm -ti -p 8978:8978 --add-host=host.docker.internal:your_local_host -v way_to_local_configuration:/opt/cloudbeaver/workspace dbeaver/cloudbeaver:cloudbeaver_version@miltonchirinos44 commented on GitHub (Sep 16, 2022):
@kseniaguzeeva
thanks for the example but my idea was to modify the base from the backend side and not by a command.
Me podria indicar cual es la carpeta donde debo modificar?
How can I modify the default h2 database to postgresql through the backend?
@miltonchirinos44 commented on GitHub (Sep 19, 2022):
@kseniiaguzeeva , I tell you that I managed to change the configuration of the default database H2 that is by default to postgresql. I do this in the build files that are in the
deploy, I understand that the files that are in thedeployare generated using the command@kseniiaguzeeva Could you please tell me in which part of the source code I have to add or modify this configuration, so that it is configured permanently, since as I make the configuration in the configuration files, the configuration will surely be restored once I execute the command
./build.shFILE CONFIGURATION DEPLOY
cloudbeaver.conffile path:
cloudbeaver/deploy/cloudbeaver/conf/cloudbeaver.confrun cloudbeaver project in eclipse "RUN -> RUN CONFIGURATIONS -> CloudbeaverServer.product -> RUN "

Console:

automatic table creation

@alexander-skoblikov commented on GitHub (Sep 23, 2022):
@miltonchirinos44 Hi, you can change cloudbeaver/config/sample-databases/DefaultConfiguration/cloudbeaver.conf
@miltonchirinos44 commented on GitHub (Sep 26, 2022):
@alexander-skoblikov
Thanks I managed to solve the problem