Bug #80210 Unable to use mysqldbexport: "Error: Missing gtid_executed system variable"
| Submitted: | 31 Jan 2016 19:57 | Modified: | 1 Feb 2016 7:58 |
|---|---|---|---|
| Reporter: | Admin Opynios | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Utilities | Severity: | S2 (Serious) |
| Version: | 1.5.6 | OS: | CentOS |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | mysqldbexport | ||
[1 Feb 2016 7:58]
MySQL Verification Team
Hello Admin Opynios, Thank you for the report. Thanks, Umesh
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 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.
Description: When i try to use mysqldbexport using the latest Mysql Utilities(1.5.6) and Mysql Server (5.7.10) it fails with below error ERROR: The server X.X.X.X:3306 does not comply to the latest GTID feature support. Errors: Missing gtid_executed system variable. How to repeat: Run the below command after installing the latest Mysql server(5.7.10) and Mysql Utilities (1.5.6) mysqldbexport --server=user:password@X.X.X.X:3306 --all --export=both --rpl=master --rpl-user=ReplUser:ReplPasswd > data.sql Suggested fix: I found that this issue is because of the code in "/usr/lib/python2.7/site-packages/mysql/utilities/common/server.py" Seems to be below code has the problem res = self.exec_query("SHOW VARIABLES LIKE 'gtid_executed'") It should be res = self.exec_query("SHOW GLOBAL VARIABLES LIKE 'gtid_executed'") Since "SHOW VARIABLES LIKE 'gtid_executed'" returns empty set, whereas "SHOW GLOBAL VARIABLES LIKE 'gtid_executed'" returns the correct value. It worked after i fixed the issue.