Last active
July 12, 2024 20:50
-
-
Save josefglatz/dd6ad5e6c146b6d389ab64df3b8c720d to your computer and use it in GitHub Desktop.
Synology cheatsheet: how to query internal Synology postgresql database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect to you NAS with YOUR admin account | |
ssh [email protected] | |
# go sudo | |
sudo -i | |
# switch to user postgres | |
su - postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start psql CLI | |
psql | |
# list user and roles | |
\du | |
# Now be careful! May the force be with you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice