Bug #5976 "Access denied" error during VIEW creation if user has databse level privileges
| Submitted: | 8 Oct 2004 11:05 | Modified: | 8 Nov 2004 9:56 |
|---|---|---|---|
| Reporter: | Victoria Reznichenko | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.2-alpha-debug-log | OS: | Linux (Linux) |
| Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[8 Oct 2004 11:05]
Victoria Reznichenko
[14 Oct 2004 15:45]
Robert Kruus
Can be solved by adding global level create view privilege -- grant create view on *.* for ....... ; But then oddly enough, you get show databases and global use prvileges (Though here I have 5.0.1-alpha). mysql> show grants for bob@localhost; +-----------------------------------------------------------------------------------------------------------------------------+ | Grants for bob@localhost | +-----------------------------------------------------------------------------------------------------------------------------+ | GRANT CREATE VIEW, SHOW *.* TO 'bob'@'localhost' IDENTIFIED BY PASSWORD '------------------------------------------' | | GRANT ALL PRIVILEGES ON `maycock`.* TO 'bob'@'localhost' | +-----------------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec) and: mysql> show databases; +----------+ | Database | +----------+ | maycock | | mysql | +----------+ 2 rows in set (0.00 sec) though the mysql database is still unusable.
[22 Oct 2004 12:46]
Oleksandr Byelkin
ChangeSet 1.1665 04/10/22 15:43:22 bell@sanja.is.com.ua +3 -0 fixed db/user privileges getting (BUG#5976)
[8 Nov 2004 9:56]
Oleksandr Byelkin
Thank you for bugreport. Bugfix is pushed into source repository.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.