Script to generate user and database in POSTGRESQL from command line
- Download script
chmod +x create_user_database_postgres_psql.sh
- Edit:
nano create_user_database_postgres_psql.sh
- Change
<youruser>
and<yourpassword>
in script - Execute:
./create_user_database_postgres_psql.sh dbname dbnewuser dbnewpass
1.0 - 28/12/2017