Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d77b9b81
Commit
d77b9b81
authored
Sep 13, 2021
by
Eduardo Bonet
Committed by
Achilleas Pipinellis
Sep 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation on connecting GUIs to the database
parent
c089f4ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
doc/development/database_debugging.md
doc/development/database_debugging.md
+30
-0
No files found.
doc/development/database_debugging.md
View file @
d77b9b81
...
...
@@ -70,6 +70,36 @@ bundle exec rails db -e development
-
`SELECT * FROM schema_migrations WHERE version = '20170926203418';`
: Check if a migration was run
-
`DELETE FROM schema_migrations WHERE version = '20170926203418';`
: Manually remove a migration
## Access the database with a GUI
Most GUIs (DataGrid, RubyMine, DBeaver) require a TCP connection to the database, but by default
the database runs on a UNIX socket. To be able to access the database from these tools, some steps
are needed:
1.
On the GDK root directory, run:
```
shell
gdk config
set
postgresql.host localhost
```
1.
Open your
`gdk.yml`
, and confirm that it has the following lines:
```
yaml
postgresql
:
host
:
localhost
```
1.
Reconfigure GDK:
```
shell
gdk reconfigure
```
1.
On your database GUI, select
`localhost`
as host,
`5432`
as port and
`gitlabhq_development`
as database.
Alternatively, you can use the connection string
`postgresql://localhost:5432/gitlabhq_development`
.
The new connection should be working now.
## Access the GDK database with Visual Studio Code
Use these instructions for exploring the GitLab database while developing with the GDK:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment