Last active
January 18, 2024 15:36
-
-
Save kekeimiku/e1da488d96727789de88332499a51d57 to your computer and use it in GitHub Desktop.
Dbeaver connect to docker database unable to export and import temporary solutions. mysql/postgres
This file contains hidden or 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
#!/bin/sh | |
docker exec -i mysql /usr/bin/mysql $@ -p2325373912 |
This file contains hidden or 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
#!/bin/sh | |
docker exec -i mysql /usr/bin/mysqldump $@ -p2325373912 |
This file contains hidden or 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
#!/bin/sh | |
docker exec -i postgres /usr/local/bin/pg_dump $@ |
This file contains hidden or 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
#!/bin/sh | |
docker exec -i postgres /usr/local/bin/pg_restore $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!!!