Created
March 1, 2022 00:44
-
-
Save FATESAIKOU/e05484b7ce5e2e56baf9c8c82cc774da to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| echo "CREATE DATABASE sampledb" | PGPASSWORD=password psql -h localhost -U user | |
| # or | |
| cat your.sql | PGPASSWORD=password psql -h localhost -U user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment