Q:

How to grant permission to a user to select only from localhost

0

How to grant permission to a user to select only from localhost.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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"];

Example :

grant select on posts.* to ramaswamy@localhost identified by 'mypassword';

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now