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
395c420f
Commit
395c420f
authored
Nov 03, 2016
by
Philip Stoev
Committed by
Sachin Setiya
Mar 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: MW-305 , re-enable the test for ALTER USER
parent
0a063473
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
mysql-test/suite/galera/r/galera_account_management.result
mysql-test/suite/galera/r/galera_account_management.result
+7
-0
mysql-test/suite/galera/t/galera_account_management.test
mysql-test/suite/galera/t/galera_account_management.test
+6
-8
No files found.
mysql-test/suite/galera/r/galera_account_management.result
View file @
395c420f
...
...
@@ -2,6 +2,13 @@ CREATE USER user1, user2 IDENTIFIED BY 'password';
SELECT COUNT(*) = 2 FROM mysql.user WHERE user IN ('user1', 'user2');
COUNT(*) = 2
1
ALTER USER user1 PASSWORD EXPIRE;
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
password_expired = 'Y'
1
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
password_expired = 'Y'
1
RENAME USER user2 TO user3;
SELECT COUNT(*) = 0 FROM mysql.user WHERE user = 'user2';
COUNT(*) = 0
...
...
mysql-test/suite/galera/t/galera_account_management.test
View file @
395c420f
...
...
@@ -18,14 +18,12 @@ SELECT COUNT(*) = 2 FROM mysql.user WHERE user IN ('user1', 'user2');
# ALTER USER
#
# LP bug 1376269
#
#--connection node_1
#ALTER USER user1 PASSWORD EXPIRE;
#SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
#
#--connection node_2
#SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
--
connection
node_1
ALTER
USER
user1
PASSWORD
EXPIRE
;
SELECT
password_expired
=
'Y'
FROM
mysql
.
user
WHERE
user
=
'user1'
;
--
connection
node_2
SELECT
password_expired
=
'Y'
FROM
mysql
.
user
WHERE
user
=
'user1'
;
#
# RENAME USER
...
...
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