What command is used to log into PSQL with a specific username?
The Full Stack Web Development - Add User via psql

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
psql -d [database]
psql -h [host]
psql -p [port]
psql -U [username]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to create a new database in PSQL?
CREATE DATABASE [database]
DROP DATABASE [database]
CREATE USER [username]
ALTER DATABASE [database]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you verify the creation of a new user in PSQL?
SELECT * FROM pg_user;
SHOW USERS;
LIST USERS;
DISPLAY USERS;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to make a user a superuser in PSQL?
UPDATE USER [username] TO SUPERUSER;
SET USER [username] AS SUPERUSER;
GRANT SUPERUSER TO [username];
ALTER USER [username] WITH SUPERUSER;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command allows you to change a user's password in PSQL?
UPDATE USER [username] SET PASSWORD '[new_password]';
MODIFY USER [username] PASSWORD '[new_password]';
ALTER USER [username] WITH PASSWORD '[new_password]';
CHANGE PASSWORD FOR [username] TO '[new_password]';
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the command to grant all privileges on a database to a user?
PERMIT ALL RIGHTS TO [user] ON [database];
ALLOW ALL ACCESS TO [user] FOR [database];
GIVE ALL PRIVILEGES TO [user] ON [database];
GRANT ALL ON DATABASE [database] TO [user];
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to connect to a specific database as a user, what must you ensure?
The database name is provided after the username.
The user has no password.
The user is a superuser.
The database is empty.
Similar Resources on Quizizz
8 questions
REST APIs with Flask and Python - Installing PostgreSQL in Ubuntu 16.04

Interactive video
•
University
6 questions
AWS, JavaScript, React - Deploy Web Apps on the Cloud - Creating a Non-Root Account

Interactive video
•
University
8 questions
Django3- Error Handling

Interactive video
•
University
6 questions
Linux Administration Bootcamp: Go from Beginner to Advanced - Repeating the Last Command as Root

Interactive video
•
University
6 questions
Web Hacker's Toolbox - Tools Used by Successful Hackers - Google Hacking: Finding Directory Listings

Interactive video
•
University
6 questions
Web Security: Common Vulnerabilities And Their Mitigation - Getting PHP and MySQL to talk to each other (Mac)

Interactive video
•
University
6 questions
Linux Operating System: A Complete Linux Guide for Beginners - sudo

Interactive video
•
University
8 questions
Practical GraphQL - Become a GraphQL Ninja - Preparing the model for authentication

Interactive video
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Information Technology (IT)
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University