1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| GRANT USAGE ON mysql.* TO 'toto'@'localhost' IDENTIFIED BY 'toto';
GRANT SELECT (
Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
Execute_priv, Repl_slave_priv, Repl_client_priv
)
ON mysql.user TO 'toto'@'localhost';
GRANT SELECT ON mysql.db TO 'toto'@'localhost';
GRANT SELECT ON mysql.host TO 'toto'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
ON mysql.tables_priv TO 'toto'@'localhost';
FLUSH PRIVILEGES ; |
Partager