Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Enter into postgresql database,create user and grant Access

sudo -u postgres psql postgres
Create user, database, and grant permission
CREATE USER kodekloud_gem WITH PASSWORD 'LQfKeWWxWD';
CREATE DATABASE kodekloud_db10;
GRANT ALL PRIVILEGES ON DATABASE "kodekloud_db10" to kodekloud_gem;
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #Enter #postgresql #user #grant #Access
ADD COMMENT
Topic
Name
4+6 =