Bug #16751 | View DEFINER breaks when using the mysql.host table for privileges | ||
---|---|---|---|
Submitted: | 24 Jan 2006 15:54 | Modified: | 8 Sep 2006 13:26 |
Reporter: | Mark Leith | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S3 (Non-critical) |
Version: | 5.0-BK | OS: | Any (All) |
Assigned to: | Alexander Nozdrin | CPU Architecture: | Any |
[24 Jan 2006 15:54]
Mark Leith
[8 Sep 2006 13:26]
Alexander Nozdrin
I can not repeat this bug in 5.0.25BK. ------------------------------------------------------------------- On host 'alik': ------------------------------------------------------------------- (alik)[~/MySQL/devel/5.0-rt-bug19718]> ./client/mysql -u root mysql # GRANT USAGE is not supported any more. mysql> grant all privileges on db1.* to u1@''; Query OK, 0 rows affected (0.00 sec) mysql> insert into mysql.host(Host, Db) values('booka', 'db1'); Query OK, 1 row affected (0.00 sec) mysql> create database db1; Query OK, 1 row affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.01 sec) ------------------------------------------------------------------- ------------------------------------------------------------------- On host 'booka': ------------------------------------------------------------------- (booka)[~/MySQL/devel/5.0-rt-bug16751]> ./client/mysql --host=alik --user=u1 mysql> use db1; ERROR 1044 (42000): Access denied for user 'u1'@'' to database 'db1' (booka)[~/MySQL/devel/5.0-rt-bug16751]> ./client/mysql --host=alik --user=u1 db1 ERROR 1044 (42000): Access denied for user 'u1'@'' to database 'db1' -------------------------------------------------------------------