Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.3.10
-
None
Description
When issuing a 10.3 mysqldump command to dump triggers and routines from a 10.2 server, the tool breaks because it tries to issue a SHOW PACKAGES command which is not supported in 10.2 and earlier releases.
mysqldump --quick --routines --triggers --no-create-info --skip-lock-tables --no-data --compress -h 10.10.16.138 -u mariadb_mock_import -p myschema
....
mysqldump: Couldn't execute 'SHOW PACKAGE STATUS WHERE Db = 'myschema'': You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PACKAGE STATUS WHERE Db = 'myschema'' at line 1 (1064)
Attachments
Issue Links
- duplicates
-
MDEV-17621 mysqldump from 10.3.5 + does not work on older versions
-
- Closed
-
-
MDEV-18312 mysqldump fails to work on any lower-version of mariadb
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
When issuing a 10.3 mysqldump command to dump triggers and routines from a 10.2 server, the tool breaks because it tries to issue a SHOW PACKAGES command which is not supported in 10.2 and earlier releases.
mysqldump --quick --routines --triggers --no-create-info --skip-lock-tables --no-data --compress -h 10.225.16.138 -u mariadb_mock_import -p ccfi_ecash .... mysqldump: Couldn't execute 'SHOW PACKAGE STATUS WHERE Db = 'ccfi_ecash'': You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PACKAGE STATUS WHERE Db = 'ccfi_ecash'' at line 1 (1064) |
When issuing a 10.3 mysqldump command to dump triggers and routines from a 10.2 server, the tool breaks because it tries to issue a SHOW PACKAGES command which is not supported in 10.2 and earlier releases.
mysqldump --quick --routines --triggers --no-create-info --skip-lock-tables --no-data --compress -h 10.10.16.138 -u mariadb_mock_import -p myschema .... mysqldump: Couldn't execute 'SHOW PACKAGE STATUS WHERE Db = 'myschema'': You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'PACKAGE STATUS WHERE Db = 'myschema'' at line 1 (1064) |
Component/s | Scripts & Clients [ 11002 ] |
Labels | need_feedback |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Labels | need_feedback |
Fix Version/s | 10.3 [ 22126 ] |
Link |
This issue duplicates |
Link |
This issue duplicates |
Assignee | Anel Husakovic [ anel ] |
Assignee | Anel Husakovic [ anel ] | Alexander Barkov [ bar ] |
Fix Version/s | 10.4 [ 22408 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Alexander Barkov [ bar ] | Anel Husakovic [ anel ] |
Assignee | Anel Husakovic [ anel ] | Alexander Barkov [ bar ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
issue.field.resolutiondate | 2019-06-24 09:51:58.0 | 2019-06-24 09:51:58.014 |
Fix Version/s | 10.3.17 [ 23411 ] | |
Fix Version/s | 10.4.7 [ 23720 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Assignee | Alexander Barkov [ bar ] | Anel Husakovic [ anel ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10002 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 90050 ] | MariaDB v4 [ 155048 ] |
I would think that cross-version mysqldump is not expected to work, but unfortunately the documentation not only doesn't support this claim, but implies otherwise by having "mysqldump and old versions of MySQL" section. Of course the use case described there is different, it's about dumping the current schema and loading it somewhere else; but still, if we start documenting incompatibilities as special cases, it means that everything is compatible otherwise, and if it's not, it must be mentioned in the documentation as well.
serg, what do you think? Do we want to support the backward compatibility of clients with older servers, or document that we don't?