mysqldump using deprecated variable INFORMATION_SCHEMA.SESSION_VARIABLES
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Invalid
|
Undecided
|
Unassigned | |||
5.7 |
Fix Released
|
High
|
George Ormond Lorch III |
Bug Description
I migrated from MySQL 5.7 to Percona Server, and now I have this error when using mysqldump:
(I don't know if this bug should be reported to MySQL, but I didn't have this bug before migrating)
# mysqldump -u backups -pxxxx -h 127.0.0.1 --single-
mysqldump: [Warning] Using a password on the command line interface can be insecure.
-- MySQL dump 10.13 Distrib 5.7.17-12, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: dbname
-- -------
-- Server version 5.7.17-12
/*!40101 SET @OLD_CHARACTER_
/*!40101 SET @OLD_CHARACTER_
/*!40101 SET @OLD_COLLATION_
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_
/*!40014 SET @OLD_FOREIGN_
/*!40101 SET @OLD_SQL_
/*!40111 SET @OLD_SQL_
/*!50112 SELECT COUNT(*) INTO @is_rocksdb_
/*!50112 SET @save_old_
/*!50112 PREPARE s FROM @save_old_
/*!50112 EXECUTE s */;
/*!50112 SET @enable_bulk_load = IF (@is_rocksdb_
/*!50112 PREPARE s FROM @enable_bulk_load */;
/*!50112 EXECUTE s */;
/*!50112 DEALLOCATE PREPARE s */;
mysqldump: Couldn't execute 'SELECT COUNT(*) FROM INFORMATION_
tags: | added: myrocks regression |
This was introduced as part of our work in porting Facebook MySQL MyRocks engine to Percona Server 5.7. The use of I_S over P_S was not caught during the merge of this feature from 5.6 to 5.7
An immediate workaround is to change the show_compatibil ity_56 back to the default value of ON which will expose the needed tables within I_S. See https:/ /dev.mysql. com/doc/ refman/ 5.7/en/ server- system- variables. html#sysvar_ show_compatibil ity_56 for details.
Alternately, a mysqldump binary from a previous version install can be used in place of the one packaged with the recent release.
I expect to have this fixed with the next release of Percona Server 5.7