Bug #41721 Restore generates lots of warnings

Submitted: 23 Dec 2008 21:37 Modified: 17 Aug 2009 19:35
Reporter: Øystein Grøvlen Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Backup Severity:S3 (Non-critical)
Version:6.0-backup OS:Any
Assigned to: CPU Architecture:Any

[23 Dec 2008 21:37] Øystein Grøvlen
Description:
I ran the following simple test script:

USE test;
CREATE TABLE t (i INTEGER);
INSERT INTO t VALUES (1), (2), (3);
BACKUP DATABASE test TO 'tmp.bak';
RESTORE FROM 'tmp.bak' OVERWRITE;
SELECT * FROM t;

I got the following output:

USE test;
CREATE TABLE t (i INTEGER);
INSERT INTO t VALUES (1), (2), (3);
BACKUP DATABASE test TO 'tmp.bak';
backup_id
270
RESTORE FROM 'tmp.bak' OVERWRITE;
backup_id
271
Warnings:
Warning	1738	The grant 'ALTER ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'CREATE ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'CREATE ROUTINE ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'CREATE TEMPORARY TABLES ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'CREATE VIEW ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'DELETE ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'DROP ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'EVENT ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'INDEX ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'INSERT ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'LOCK TABLES ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'REFERENCES ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'SELECT ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'SHOW VIEW ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'TRIGGER ON test.*' for the user ''@'%' was skipped because the user does not exist.
Warning	1738	The grant 'UPDATE ON test.*' for the user ''@'%' was skipped because the user does not exist.
SELECT * FROM t;
i
1
2
3

How to repeat:
See description.
[23 Dec 2008 21:40] Øystein Grøvlen
I did some binary search in old versions, and it seems this started to appear when the new version of the object services interface was merged to backup.
[8 Jan 2009 10:50] Øystein Grøvlen
The warnings does not occur if I use another database than 'test' for my test script.
[17 Aug 2009 19:35] Sveta Smirnova
Marked as duplicate of verified bug #46765, because later contains explanation why this is wrong.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.056 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.