programming-examples/sql/UserManagement/7. How to grant all privileges to a user from all machines.sql
2019-11-18 14:05:53 +01:00

14 lines
365 B
SQL

/*7. How to grant all privileges to a user from all machines.
*/
/*Syntax :
grant [<permission_1,permission_2,...permission_n>|<all>]
on [database].[<table_name>|<all_tables(*)>]
to [user name]@[<localhost>|<IP address>|<any host('%')>]
identified by ["password"];
*/
grant all on posts.* to joy@'%' identified by 'mypassword';
flush privileges;