Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
42c99ef0
Commit
42c99ef0
authored
May 07, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19949 `mariadb-backup --password` test
parent
421eeb18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mysql-test/suite/mariabackup/backup_grants.result
mysql-test/suite/mariabackup/backup_grants.result
+1
-1
mysql-test/suite/mariabackup/backup_grants.test
mysql-test/suite/mariabackup/backup_grants.test
+10
-10
No files found.
mysql-test/suite/mariabackup/backup_grants.result
View file @
42c99ef0
CREATE user backup@localhost;
CREATE user backup@localhost
IDENTIFIED BY 'xyz'
;
FOUND 1 /missing required privilege RELOAD/ in backup.log
FOUND 1 /missing required privilege RELOAD/ in backup.log
FOUND 1 /missing required privilege PROCESS/ in backup.log
FOUND 1 /missing required privilege PROCESS/ in backup.log
FOUND 1 /GRANT USAGE ON/ in backup.log
FOUND 1 /GRANT USAGE ON/ in backup.log
...
...
mysql-test/suite/mariabackup/backup_grants.test
View file @
42c99ef0
let
$targetdir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
;
let
$targetdir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
;
CREATE
user
backup
@
localhost
;
CREATE
user
backup
@
localhost
IDENTIFIED
BY
'xyz'
;
# backup possible for unprivileges user, with --no-lock
# backup possible for unprivileges user, with --no-lock
--
disable_result_log
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
no
-
lock
--
target
-
dir
=
$targetdir
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
-
pxyz
-
-
no
-
lock
--
target
-
dir
=
$targetdir
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
# backup fails without --no-lock, because of FTWRL
# backup fails without --no-lock, because of FTWRL
--
disable_result_log
--
disable_result_log
error
1
;
error
1
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
-
pxyz
-
-
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
--
enable_result_log
--
enable_result_log
let
SEARCH_FILE
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
;
let
SEARCH_FILE
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
;
...
@@ -23,7 +23,7 @@ let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/backup.log;
...
@@ -23,7 +23,7 @@ let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/backup.log;
# backup succeeds with RELOAD privilege
# backup succeeds with RELOAD privilege
GRANT
RELOAD
,
PROCESS
on
*.*
to
backup
@
localhost
;
GRANT
RELOAD
,
PROCESS
on
*.*
to
backup
@
localhost
;
--
disable_result_log
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
target
-
dir
=
$targetdir
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
-
user
=
backup
--
password
=
xyz
--
target
-
dir
=
$targetdir
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
...
@@ -31,7 +31,7 @@ rmdir $targetdir;
...
@@ -31,7 +31,7 @@ rmdir $targetdir;
# --slave-info and galera info require REPLICA MONITOR
# --slave-info and galera info require REPLICA MONITOR
--
disable_result_log
--
disable_result_log
error
1
;
error
1
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
slave
-
info
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
-
user
backup
--
password
xyz
--
slave
-
info
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
...
@@ -40,7 +40,7 @@ rmdir $targetdir;
...
@@ -40,7 +40,7 @@ rmdir $targetdir;
GRANT
REPLICA
MONITOR
ON
*.*
TO
backup
@
localhost
;
GRANT
REPLICA
MONITOR
ON
*.*
TO
backup
@
localhost
;
--
disable_result_log
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
slave
-
info
--
target
-
dir
=
$targetdir
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
-
pxyz
-
-
slave
-
info
--
target
-
dir
=
$targetdir
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
REVOKE
REPLICA
MONITOR
ON
*.*
FROM
backup
@
localhost
;
REVOKE
REPLICA
MONITOR
ON
*.*
FROM
backup
@
localhost
;
...
@@ -50,7 +50,7 @@ REVOKE REPLICA MONITOR ON *.* FROM backup@localhost;
...
@@ -50,7 +50,7 @@ REVOKE REPLICA MONITOR ON *.* FROM backup@localhost;
# kill-long-query-type=(not empty) requires CONNECTION ADMIN
# kill-long-query-type=(not empty) requires CONNECTION ADMIN
--
disable_result_log
--
disable_result_log
--
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
kill
-
long
-
query
-
type
=
ALL
--
kill
-
long
-
queries
-
timeout
=
4
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
--
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
-
pxyz
-
-
kill
-
long
-
query
-
type
=
ALL
--
kill
-
long
-
queries
-
timeout
=
4
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
2
>&
1
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
...
@@ -59,14 +59,14 @@ rmdir $targetdir;
...
@@ -59,14 +59,14 @@ rmdir $targetdir;
GRANT
CONNECTION
ADMIN
ON
*.*
TO
backup
@
localhost
;
GRANT
CONNECTION
ADMIN
ON
*.*
TO
backup
@
localhost
;
--
disable_result_log
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
kill
-
long
-
query
-
type
=
all
--
kill
-
long
-
queries
-
timeout
=
1
--
target
-
dir
=
$targetdir
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
-
user
=
backup
--
password
=
xyz
--
kill
-
long
-
query
-
type
=
all
--
kill
-
long
-
queries
-
timeout
=
1
--
target
-
dir
=
$targetdir
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
# --safe-slave-backup requires REPLICATION SLAVE ADMIN, and REPLICA MONITOR
# --safe-slave-backup requires REPLICATION SLAVE ADMIN, and REPLICA MONITOR
--
disable_result_log
--
disable_result_log
error
1
;
error
1
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
safe
-
slave
-
backup
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
-
user
backup
--
password
xyz
--
safe
-
slave
-
backup
--
target
-
dir
=
$targetdir
>
$MYSQLTEST_VARDIR
/
tmp
/
backup
.
log
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
...
@@ -78,7 +78,7 @@ rmdir $targetdir;
...
@@ -78,7 +78,7 @@ rmdir $targetdir;
GRANT
REPLICATION
SLAVE
ADMIN
ON
*.*
TO
backup
@
localhost
;
GRANT
REPLICATION
SLAVE
ADMIN
ON
*.*
TO
backup
@
localhost
;
GRANT
REPLICA
MONITOR
ON
*.*
TO
backup
@
localhost
;
GRANT
REPLICA
MONITOR
ON
*.*
TO
backup
@
localhost
;
--
disable_result_log
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
--
safe
-
slave
-
backup
--
target
-
dir
=
$targetdir
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
-
ubackup
-
pxyz
-
-
safe
-
slave
-
backup
--
target
-
dir
=
$targetdir
;
--
enable_result_log
--
enable_result_log
rmdir
$targetdir
;
rmdir
$targetdir
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment