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
aacbe21c
Commit
aacbe21c
authored
Jun 21, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test fix
parent
0f3bc4cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
+24
-20
mysql-test/r/rpl_grant.result
mysql-test/r/rpl_grant.result
+16
-16
mysql-test/t/rpl_grant.test
mysql-test/t/rpl_grant.test
+8
-4
No files found.
mysql-test/r/rpl_grant.result
View file @
aacbe21c
...
...
@@ -7,40 +7,40 @@ start slave;
**** On Master ****
CREATE USER dummy@localhost;
CREATE USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user;
SELECT user, host FROM mysql.user
WHERE user != 'root'
;
user host
root 127.0.0.1
dummy localhost
dummy1 localhost
dummy2 localhost
root localhost
root romeo.kindahl.net
SELECT COUNT(*) FROM mysql.user;
COUNT(*)
6
**** On Slave ****
SELECT user,host FROM mysql.user;
SELECT user,host FROM mysql.user
WHERE user != 'root'
;
user host
root 127.0.0.1
dummy localhost
dummy1 localhost
dummy2 localhost
root localhost
root romeo.kindahl.net
SELECT COUNT(*) FROM mysql.user;
COUNT(*)
6
**** On Master ****
DROP USER nonexisting@localhost;
ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost'
DROP USER nonexisting@localhost, dummy@localhost;
ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost'
DROP USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user;
SELECT user, host FROM mysql.user
WHERE user != 'root'
;
user host
root 127.0.0.1
root localhost
root romeo.kindahl.net
SELECT COUNT(*) FROM mysql.user;
COUNT(*)
3
**** On Slave ****
SELECT user,host FROM mysql.user;
SELECT user,host FROM mysql.user
WHERE user != 'root'
;
user host
root 127.0.0.1
root localhost
root romeo.kindahl.net
SELECT COUNT(*) FROM mysql.user;
COUNT(*)
3
SHOW SLAVE STATUS;
Slave_IO_State #
Master_Host 127.0.0.1
...
...
mysql-test/t/rpl_grant.test
View file @
aacbe21c
...
...
@@ -9,10 +9,12 @@ connection master;
CREATE
USER
dummy
@
localhost
;
CREATE
USER
dummy1
@
localhost
,
dummy2
@
localhost
;
SELECT
user
,
host
FROM
mysql
.
user
;
SELECT
user
,
host
FROM
mysql
.
user
WHERE
user
!=
'root'
;
# root host non-determ
SELECT
COUNT
(
*
)
FROM
mysql
.
user
;
sync_slave_with_master
;
--
echo
****
On
Slave
****
SELECT
user
,
host
FROM
mysql
.
user
;
SELECT
user
,
host
FROM
mysql
.
user
WHERE
user
!=
'root'
;
# root host non-determ
SELECT
COUNT
(
*
)
FROM
mysql
.
user
;
--
echo
****
On
Master
****
connection
master
;
...
...
@@ -28,10 +30,12 @@ DROP USER nonexisting@localhost, dummy@localhost;
# All users exist
DROP
USER
dummy1
@
localhost
,
dummy2
@
localhost
;
SELECT
user
,
host
FROM
mysql
.
user
;
SELECT
user
,
host
FROM
mysql
.
user
WHERE
user
!=
'root'
;
# root host non-determ
SELECT
COUNT
(
*
)
FROM
mysql
.
user
;
sync_slave_with_master
;
--
echo
****
On
Slave
****
SELECT
user
,
host
FROM
mysql
.
user
;
SELECT
user
,
host
FROM
mysql
.
user
WHERE
user
!=
'root'
;
# root host non-determ
SELECT
COUNT
(
*
)
FROM
mysql
.
user
;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
--
replace_column
1
# 8 # 9 # 23 # 33 #
...
...
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