1. 16 Mar, 2014 1 commit
  2. 14 Jan, 2014 1 commit
  3. 02 Dec, 2013 2 commits
  4. 28 Nov, 2013 2 commits
  5. 18 Oct, 2013 1 commit
  6. 11 Oct, 2013 1 commit
  7. 03 Oct, 2013 1 commit
  8. 06 Sep, 2013 2 commits
  9. 05 Sep, 2013 1 commit
  10. 29 Jul, 2013 1 commit
  11. 23 Jul, 2013 1 commit
    • Only revoke GRANT OPTION when user actually has it · 9d0fc0fd
      When revoking privileges from a user, the GRANT OPTION is always
      revoked, even if the user doesn't have it. If the user exists, this
      doesn't give an error, but if the user doesn't exist, it does:
      
      mysql> GRANT ALL ON test.* TO 'test'@'localhost';
      Query OK, 0 rows affected (0.00 sec)
      
      mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost';
      Query OK, 0 rows affected (0.00 sec)
      
      mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost';
      Query OK, 0 rows affected (0.00 sec)
      
      mysql> REVOKE ALL ON test.* FROM 'test'@'localhost';
      Query OK, 0 rows affected (0.00 sec)
      
      mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost';
      ERROR 1141 (42000): There is no such grant defined for user 'test' on
      host 'localhost'
      
      Additionally, in MySQL 5.6 this breaks replication because of
      http://bugs.mysql.com/bug.php?id=68892.
      
      Rather than revoking the GRANT OPTION and catching the error, check if
      the user actually has it and only revoke it when he does.
      Stijn Tintel committed
  12. 20 Jul, 2013 1 commit
  13. 01 Jul, 2013 1 commit
  14. 15 Jun, 2013 1 commit
  15. 11 Jun, 2013 1 commit
    • Fix MySQL 5.6 compatibility · 767c208e
      In MySQL 5.6, the root account created by default during MySQL
      installation has the PROXY ... WITH GRANT OPTION privilege for ''@'',
      that is, for all users.
      
      The mysql_user module tries to revoke this privilege, but this fails:
      _mysql_exceptions.ProgrammingError: (1064, "You have an error in your
      SQL syntax; check the manual that corresponds to your MySQL server
      version for the right syntax to use near '''@'' FROM 'root'@'localhost''
      at line 1")
      
      Quick fix: don't revoke privilege if user is root and the privilege to
      revoke contains PROXY.
      Stijn Tintel committed
  16. 28 Apr, 2013 1 commit
  17. 25 Mar, 2013 1 commit
  18. 15 Mar, 2013 2 commits
  19. 01 Mar, 2013 1 commit
  20. 28 Feb, 2013 2 commits
  21. 26 Feb, 2013 1 commit
  22. 22 Feb, 2013 2 commits
  23. 16 Feb, 2013 1 commit
  24. 19 Nov, 2012 1 commit
  25. 15 Nov, 2012 1 commit
  26. 09 Nov, 2012 1 commit
  27. 31 Oct, 2012 1 commit
  28. 24 Oct, 2012 2 commits
  29. 23 Oct, 2012 1 commit
  30. 01 Oct, 2012 1 commit
  31. 30 Sep, 2012 1 commit
  32. 29 Sep, 2012 1 commit
  33. 03 Aug, 2012 1 commit