Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.5.25, 10.11.8, 10.6.18
-
None
Description
Latest MariaDB prepends sandbox mode enable command in the dumps:
$ mysqldump database_name | head -n 1
|
/*!999999\- enable the sandbox mode */
|
Dump with this prefix can not be restored when `--binary-mode` flag is used:
$ mysqldump database_name | mysql --binary-mode another_db
|
ERROR at line 1: Unknown command '\-'.
|
Is there a way to opt-out of sandbox mode when creating a dump?
Attachments
Issue Links
- is caused by
-
MDEV-33727 mariadb-dump trusts the server and does not validate the data
-
- Closed
-
- is duplicated by
-
MDEV-34395 Binary mode import breaks with /*!999999\- enable the sandbox mode */
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Description |
Latest MariaDB prepends sandbox mode enable command in the dumps:
``` $ mysqldump database_name | head -n 1 /*!999999\- enable the sandbox mode */ ``` Dump with this prefix can not be restored when `--binary-mode` flag is used: ``` $ mysqldump database_name | mysql --binary-mode another_db ERROR at line 1: Unknown command '\-'. ``` Is there a way to opt-out of sandbox mode when creating a dump? |
Latest MariaDB prepends sandbox mode enable command in the dumps:
{noformat} $ mysqldump database_name | head -n 1 /*!999999\- enable the sandbox mode */ {noformat} Dump with this prefix can not be restored when `--binary-mode` flag is used: {noformat} $ mysqldump database_name | mysql --binary-mode another_db ERROR at line 1: Unknown command '\-'. {noformat} Is there a way to opt-out of sandbox mode when creating a dump? |
Link |
This issue is caused by |
Link |
This issue is caused by |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Assignee | Sergei Golubchik [ serg ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] |
Assignee | Sergei Golubchik [ serg ] | Oleksandr Byelkin [ sanja ] |
Link | This issue blocks MENT-2084 [ MENT-2084 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Alexander Barkov [ bar ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Alexander Barkov [ bar ] | Oleksandr Byelkin [ sanja ] |
Fix Version/s | 10.5.26 [ 29832 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.6.19 [ 29833 ] | |
Fix Version/s | 10.11.9 [ 29834 ] | |
Fix Version/s | 11.1.6 [ 29835 ] | |
Fix Version/s | 11.2.5 [ 29836 ] | |
Fix Version/s | 11.4.3 [ 29837 ] |
Link |
This issue is duplicated by |
Similar results to the --sandbox option can be achieved with --binary-mode:
$ cat /tmp/test.sql
system ls /;
$ mysql < /tmp/test.sql
bin boot dev etc home lib lib64 man media mnt opt proc root run sbin scripts setup.sh srv sys tmp usr var
$ mysql --binary-mode < /tmp/test.sql
ERROR 1064 (42000) at line 1: 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 'system ls /' at line 1
This is actually how this issue was discovered - by using --binary-mode to disable client side commands. Are there any undesired side-effects when --binary-mode is used to import a DB dump that prompted creating --sandbox feature?