| Bug #2178 | Table- and column-specific privileges aren't loaded from corresponding tables | ||
|---|---|---|---|
| Submitted: | 21 Dec 2003 7:23 | Modified: | 24 Dec 2003 0:39 | 
| Reporter: | Alex Scherbatey | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) | 
| Version: | 4.1.1 | OS: | Any (Any) | 
| Assigned to: | MySQL Verification Team | CPU Architecture: | Any | 
   [21 Dec 2003 7:23]
   Alex Scherbatey        
  
 
   [22 Dec 2003 7:41]
   Alexander Keremidarski        
  Extending How-to-repeat secton. After all statements Alex sent do the following: mysql> show grants for 'bug_test_usr'@'%'; +----------------------------------------------------------------------------+ | Grants for bug_test_usr@% | +----------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'bug_test_usr'@'%' | | GRANT SELECT ON `bug_test_db`.* TO 'bug_test_usr'@'%' | | GRANT INSERT, UPDATE ON `bug_test_db`.`bug_test_tbl` TO 'bug_test_usr'@'%' | +----------------------------------------------------------------------------+ Restart mysqld, login and repeat: mysql> show grants for 'bug_test_usr'@'%'; +-------------------------------------------------------+ | Grants for bug_test_usr@% | +-------------------------------------------------------+ | GRANT USAGE ON *.* TO 'bug_test_usr'@'%' | | GRANT SELECT ON `bug_test_db`.* TO 'bug_test_usr'@'%' | +-------------------------------------------------------+ As Alex reported table privileges " are not loaded loaded ... although corresponding records in `tables_priv` and `columns_priv` exist." mysql> select * from mysql.tables_priv where user = 'bug_test_usr'; +------+-------------+--------------+--------------+----------------+---------------------+------------+-------------+ | Host | Db | User | Table_name | Grantor | Timestamp | Table_priv | Column_priv | +------+-------------+--------------+--------------+----------------+---------------------+------------+-------------+ | % | bug_test_db | bug_test_usr | bug_test_tbl | root@localhost | 2003-12-22 17:37:12 | Insert | Update | +------+-------------+--------------+--------------+----------------+---------------------+------------+-------------+
   [22 Dec 2003 10:56]
   MySQL Verification Team        
  Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
Fix will come in 4.1.2.
 
   [24 Dec 2003 0:37]
   Michael Widenius        
  Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
 
   [24 Dec 2003 0:39]
   Michael Widenius        
  Fix will be in 4.1.2
   [7 Apr 2004 13:14]
   Charles Bailey        
  In case it's not already fixed on the 5.0 branch, the 5.0.0-alpha server has the same bug. Thanks.

