



Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!




How to create a user on localhost. create user alvarocobo@localhost identified by "contraseña";
How to create a user for an IP address other than localhost. create user [email protected] identified by "contraseña";
How to grant permission to a user to select only from localhost. grant select on world.* to alvarocobo@localhost; flush privileges;
How to grant a user permission to create, insert, update, delete and create temporary tables from localhost. grant create, insert, update, delete, create temporary tables on world.* to alvarocobo@localhost; flush privileges;
How to grant a user permission to create, insert, update, delete and create temporary tables from any host. grant create, insert, update, delete, create temporary tables on world.* to alvarocobo@’%’; flush privileges;
How to grant a user permission to select only from any host but to a specific table of a database. grant select on world.city to alvarocobo@’%’; flush privileges;
How to check permissions granted to a specific user. show grants for alvarocobo;
How to check the list of system privileges that the MySQL server supports. show privileges;
How to Grant permission to a user so that (s)he can execute not more than a specific number of queries in an hour. ALTER USER 'alvarocobo'@'localhost' WITH MAX_QUERIES_PER_HOUR 90;
How to change the password to a user. set password for alvarocobo@localhost = password(‘nuevacontraseña);
How to delete user. drop user alvarocobo@'localhost';
How to rename a user. rename user alvarocobo@localhost to alvarocobolara@localhost;