Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgres set user as superuser

ALTER USER myuser WITH SUPERUSER;
Comment

postgres add superuser to database

create USER <<username>>;
ALTER USER <<username>> WITH SUPERUSER;
ALTER USER <<username>> WITH PASSWORD '<<password>>';
Comment

postgres create user with superuser privileges

sudo -u postgres createuser -s -i -d -r -l -w <<username>>
sudo -u postgres psql -c "ALTER ROLE <<username>> WITH PASSWORD '<<password>>';"
Comment

PREVIOUS NEXT
Code Example
Sql :: t-sql find object by name 
Sql :: postgres get next sequence value 
Sql :: set statiscis on in ssms 
Sql :: sql sum if 
Sql :: sql find column name like 
Sql :: psql is not recognized 
Sql :: fill a column in database with a value 
Sql :: oracle sql drop table 
Sql :: postgresql get current user name 
Sql :: postgresql random number 
Sql :: rename table snowflake 
Sql :: oracle list datafiles in tablespace 
Sql :: mysql between start date and end date 
Sql :: create table sql server auto increment primary key 
Sql :: mysql drop column 
Sql :: sql get table last modified time 
Sql :: mysql cli connect with password 
Sql :: oracle apex list connected users 
Sql :: how to get the ddl for datafile in oracle tablespace 
Sql :: mysql bigint max value 
Sql :: oracle current date plus 1 month 
Sql :: sql drop table statement 
Sql :: postgres make sql dump 
Sql :: mysql shell ERROR: Not connected. 
Sql :: sql server delete top 1000 
Sql :: install postgresql on raspberry pi 
Sql :: oracle user privileges 
Sql :: sql delete multiple conditions 
Sql :: mysql convert column to uppercase 
Sql :: XOR in SQL Server 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =