Views & Authorisation Flashcards

1
Q

What parts of the database can have different authorisations on them?

A
  • Select
  • Insert
  • Update
  • Delete
  • Execute
  • Create
  • Alter
  • Drop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What commands are used to change a user’s privileges

A

grant or revoke

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we give users on a remote host access?

A

‘username’@’%’

Gives user access on any host

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you allow users to pass on authority?

A

after user list put ‘with grant option’ command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does restrict do?

A

Prevents revoking of rights if cascading revokes are required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the selectors for parts of a database to apply the rights on?

A

. => all of the databases
test_db.* => all tables in the database test_db
test_db.person => person table in test_db
(person.id) on test_db.person => id column in person

How well did you know this?
1
Not at all
2
3
4
5
Perfectly