Enter into postgresql database,create user and grant Access Enter into postgresql database,create user and grant Access

The solution for “Enter into postgresql database,create user and grant Access Enter into postgresql database,create user and grant Access” can be found here. The following code will assist you in solving the problem.

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;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;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in