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
2
Q
What commands are used to change a user’s privileges
A
grant or revoke
3
Q
How do we give users on a remote host access?
A
‘username’@’%’
Gives user access on any host
4
Q
How do you allow users to pass on authority?
A
after user list put ‘with grant option’ command.
5
Q
What does restrict do?
A
Prevents revoking of rights if cascading revokes are required.
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