Professional Documents
Culture Documents
PracticeUnit2 Jose Garcia de La Encina
PracticeUnit2 Jose Garcia de La Encina
Document the exercises with screenshots of the commands used and their
results.
2)
Create users and assign permissions locally.
a) Create a user named paco@localhost with connection-only permissions
and verify that the connection is successful.
b) Grant SELECT permissions on the table jardineria.Clientes to the user
paco@localhost and verify that the connection is successful, then
perform a SELECT.
c) Create the user juan@localhost with SELECT, INSERT, and UPDATE
permissions on the tables of the jardineria database with the GRANT
option.
d) Connect with the user juan and grant SELECT permissions on the table
jardineria.Empleados to paco.
e) Revoke SELECT permissions on the table jardineria.Clientes from paco.
f) Connect with root and revoke all the permissions granted to paco and
juan.
g) Grant juan SELECT permissions on the columns CodigoOficina and
Ciudad of the table Oficinas in the jardineria database.
h) Connect with juan and execute the query "SELECT * FROM
jardineria.Oficinas". What happens?
This will allow him to execute the SELECT on OFICINAS table.