infogulch

Untitled

Apr 10th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE USER 'USR'@'%' IDENTIFIED BY 'x';
  2.  
  3. GRANT ALL ON *.* TO 'USR'@'%';
  4.  
  5. REVOKE UPDATE ON paymentmethods.*    FROM 'USR'@'%'; /* 0   17:39:09    REVOKE UPDATE ON paymentmethods.*    FROM 'USR'@'%' Error Code: 1141. There is no such grant defined for user 'USR' on host '%' */
  6. GRANT  UPDATE ON paymentmethods.active TO 'USR'@'%';
  7.  
  8. /*
  9. btw:
  10.     SHOW GRANTS FOR 'USR'@'%'
  11. result:
  12.     'GRANT ALL PRIVILEGES ON *.* TO ''USR''@''%'' IDENTIFIED BY PASSWORD ''*x'''
  13. */
Advertisement
Add Comment
Please, Sign In to add comment