Bug #40197 Restore of databases with events generates warning
| Submitted: | 21 Oct 2008 10:01 | Modified: | 7 Aug 2009 7:56 |
|---|---|---|---|
| Reporter: | Øystein Grøvlen | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server: Backup | Severity: | S3 (Non-critical) |
| Version: | 6.0-bzr | OS: | Any |
| Assigned to: | Jørgen Løland | CPU Architecture: | Any |
[21 Oct 2008 10:01]
Øystein Grøvlen
[21 Oct 2008 10:05]
Øystein Grøvlen
I suspect this may be result of executing 'drop event ... if exists' during restore since according to the code that will give this warning if event does not exist. (But I might be wrong. I have not checked that restore actually perform 'drop event ... if exists'.
[21 Oct 2008 10:13]
Valeriy Kravchuk
Thank you for a bug report. Verified as described on recent 6.0 from bzr: openxs@suse:/home2/openxs/dbs/6.0> bin/mysql -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 Server version: 6.0.8-alpha-debug Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database evdb; Query OK, 1 row affected (0.02 sec) mysql> use evdb; Database changed mysql> create event X on schedule every 1 second do set @a=5; Query OK, 0 rows affected (0.01 sec) mysql> backup database evdb to '26'; +-----------+ | backup_id | +-----------+ | 5774 | +-----------+ 1 row in set (0.27 sec) mysql> restore from '26'; +-----------+ | backup_id | +-----------+ | 5775 | +-----------+ 1 row in set (0.03 sec) mysql> show warnings; +-------+------+------------------------+ | Level | Code | Message | +-------+------+------------------------+ | Note | 1305 | Event X does not exist | +-------+------+------------------------+ 1 row in set (0.00 sec)
[12 Feb 2009 21:15]
Hema Sridharan
I don't see this behaviour in the latest tree. Everything works fine. mysql> create database evdb; Query OK, 1 row affected (0.00 sec) mysql> use evdb; Database changed mysql> create event X on schedule every 1 second do set @a=5; Query OK, 0 rows affected (0.00 sec) mysql> backup database evdb to '26'; +-----------+ | backup_id | +-----------+ | 270 | +-----------+ 1 row in set (0.26 sec) mysql> restore from '26' overwrite; +-----------+ | backup_id | +-----------+ | 272 | +-----------+ 1 row in set (0.02 sec) mysql> show warnings; Empty set (0.00 sec)
[7 Aug 2009 7:56]
Jørgen Løland
Still can't repeat this bug. Closing.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 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.