14 lines
365 B
SQL
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;
|