Advertisement
fplanzer

read-only mysql user

Aug 8th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.16 KB | None | 0 0
  1. grant select on bd.table to 'user'@'%' identified by 'password';
  2.  
  3. grant select on bd.table to 'user'@localhost identified by 'passsword';
  4.  
  5. flush privileges;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement