You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;