Bug #22062 | View Definer unable to Show View - results in mysql-dump failure | ||
---|---|---|---|
Submitted: | 6 Sep 2006 19:30 | Modified: | 16 Oct 2006 14:57 |
Reporter: | Erica Moss | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S2 (Serious) |
Version: | 5.0.25 -log | OS: | Linux (Fedora core 5) |
Assigned to: | CPU Architecture: | Any |
[6 Sep 2006 19:30]
Erica Moss
[7 Sep 2006 9:23]
Sveta Smirnova
Thank you for the report. Is command "[emalossi@ericm mysql-test]$ ../client/mysqldump --user=root --all-databases --add-drop-table --socket=./var/tmp/master.sock > ~/dump.out" correct? Do you dump as user root? If so, I can not repeat it using current sources: ssmirnova@shella ~/mysql5.0b $bin/mysql --socket=/tmp/mysql.sock -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.26-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE myDB; Query OK, 1 row affected (0.05 sec) mysql> use myDB; Database changed mysql> mysql> GRANT CREATE VIEW, SELECT ON myDB.* TO -> 'create'@'localhost' IDENTIFIED BY 'create'; Query OK, 0 rows affected (0.05 sec) mysql> mysql> CREATE TABLE t1 (c1 INT); Query OK, 0 rows affected (0.18 sec) mysql> INSERT INTO t1 VALUES (30); Query OK, 1 row affected (0.00 sec) mysql> \q Bye ssmirnova@shella ~/mysql5.0b $bin/mysql --socket=/tmp/mysql.sock -ucreate myDB -p Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 5.0.26-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE VIEW myDB.v1 (c) AS SELECT c1 FROM myDB.t1; Query OK, 0 rows affected (0.00 sec) mysql> CREATE VIEW myDB.v2 (c) AS SELECT c+1 FROM myDB.v1; Query OK, 0 rows affected (0.02 sec) mysql> \q Bye ssmirnova@shella ~/mysql5.0b $bin/mysqldump --user=root --all-databases --add-drop-table --socket=/tmp/mysql.sock > bug22062.sql ssmirnova@shella ~/mysql5.0b
[7 Oct 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[16 Oct 2006 14:57]
Erica Moss
I tried this again with 5.0.26. This problem does appear to have been resolved in this release.
[14 Nov 2006 20:30]
Sveta Smirnova
There is duplicate bug #24070
[22 Oct 2007 12:19]
Manjit Patel
This problem has re-appeared in version 5.0.45 but was not present in the previous version that we had which was 5.0.15.
[22 Oct 2007 12:24]
Manjit Patel
Sorry forgot to add that I dump the database as user root. I have moved over scripts that were executing with no problems on MySQL version 5.0.15, but on version 5.0.45 I get the following error message: mysqldump: Couldn't execute 'SHOW FIELDS FROM `v': View 'myDB.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them (1356)
[23 Oct 2007 7:04]
Sveta Smirnova
I can not repeat described behaviour with version 5.0.45
[18 Aug 2008 3:47]
Michiel Dethmers
just for reference, I got this problem on 5.0.27