Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1/*: delete "show create user" #1646

Merged
merged 2 commits into from
Nov 12, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion v2.1/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@
- [`SHOW COLLATION`](/v2.1/reference/sql/statements/show-collation.md)
- [`SHOW [FULL] COLUMNS FROM`](/v2.1/reference/sql/statements/show-columns-from.md)
- [`SHOW CREATE TABLE`](/v2.1/reference/sql/statements/show-create-table.md)
- [`SHOW CREATE USER`](/v2.1/reference/sql/statements/show-create-user.md)
- [`SHOW DATABASES`](/v2.1/reference/sql/statements/show-databases.md)
- [`SHOW ENGINES`](/v2.1/reference/sql/statements/show-engines.md)
- [`SHOW ERRORS`](/v2.1/reference/sql/statements/show-errors.md)
Expand Down
25 changes: 12 additions & 13 deletions v2.1/reference/sql/statements/alter-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ This statement changes an existing user inside the TiDB privilege system. In the
mysql> CREATE USER 'newuser' IDENTIFIED BY 'newuserpassword';
Query OK, 1 row affected (0.01 sec)

mysql> SHOW CREATE USER 'newuser';
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER for newuser@% |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER 'newuser'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*5806E04BBEE79E1899964C6A04D68BCA69B1A879' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT USER, HOST, PASSWORD FROM mysql.`user` WHERE USER = 'newuser';
+---------+------+-------------------------------------------+
| USER | HOST | PASSWORD |
+---------+------+-------------------------------------------+
| newuser | % | *5806E04BBEE79E1899964C6A04D68BCA69B1A879 |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)

mysql> ALTER USER 'newuser' IDENTIFIED BY 'newnewpassword';
Query OK, 0 rows affected (0.02 sec)

mysql> SHOW CREATE USER 'newuser';
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER for newuser@% |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER 'newuser'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*FB8A1EA1353E8775CA836233E367FBDFCB37BE73' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT USER, HOST, PASSWORD FROM mysql.`user` WHERE USER = 'newuser';
+---------+------+-------------------------------------------+
| USER | HOST | PASSWORD |
+---------+------+-------------------------------------------+
| newuser | % | *FB8A1EA1353E8775CA836233E367FBDFCB37BE73 |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)
```

Expand All @@ -57,4 +57,3 @@ mysql> SHOW CREATE USER 'newuser';
* [Security Compatibility with MySQL](/v2.1/reference/security/compatibility.md)
* [CREATE USER](/v2.1/reference/sql/statements/create-user.md)
* [DROP USER](/v2.1/reference/sql/statements/drop-user.md)
* [SHOW CREATE USER](/v2.1/reference/sql/statements/show-create-user.md)
1 change: 0 additions & 1 deletion v2.1/reference/sql/statements/create-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@ Query OK, 1 row affected (0.02 sec)

* [Security Compatibility with MySQL](/v2.1/reference/security/compatibility.md)
* [DROP USER](/v2.1/reference/sql/statements/drop-user.md)
* [SHOW CREATE USER](/v2.1/reference/sql/statements/show-create-user.md)
* [ALTER USER](/v2.1/reference/sql/statements/alter-user.md)
* [Privilege Management](/v2.1/reference/security/privilege-system.md)
1 change: 0 additions & 1 deletion v2.1/reference/sql/statements/drop-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ ERROR 1141 (42000): There is no such grant defined for user 'newuser' on host '%

* [CREATE USER](/v2.1/reference/sql/statements/create-user.md)
* [ALTER USER](/v2.1/reference/sql/statements/alter-user.md)
* [SHOW CREATE USER](/v2.1/reference/sql/statements/show-create-user.md)
* [Privilege Management](/v2.1/reference/security/privilege-system.md)
36 changes: 18 additions & 18 deletions v2.1/reference/sql/statements/set-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@ Query OK, 0 rows affected (0.01 sec)
mysql> CREATE USER 'newuser' IDENTIFIED BY 'test';
Query OK, 1 row affected (0.00 sec)

mysql> SHOW CREATE USER newuser;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER for newuser@% |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER 'newuser'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT USER, HOST, PASSWORD FROM mysql.`user` WHERE USER = 'newuser';
+---------+------+-------------------------------------------+
| USER | HOST | PASSWORD |
+---------+------+-------------------------------------------+
| newuser | % | *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)

mysql> SET PASSWORD FOR newuser = 'test';
Query OK, 0 rows affected (0.01 sec)

mysql> SHOW CREATE USER newuser;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER for newuser@% |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER 'newuser'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT USER, HOST, PASSWORD FROM mysql.`user` WHERE USER = 'newuser';
+---------+------+-------------------------------------------+
| USER | HOST | PASSWORD |
+---------+------+-------------------------------------------+
| newuser | % | *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)

mysql> SET PASSWORD FOR newuser = PASSWORD('test'); -- deprecated syntax from earlier MySQL releases
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW CREATE USER newuser;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER for newuser@% |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CREATE USER 'newuser'@'%' IDENTIFIED WITH 'mysql_native_password' AS '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
mysql> SELECT USER, HOST, PASSWORD FROM mysql.`user` WHERE USER = 'newuser';
+---------+------+-------------------------------------------+
| USER | HOST | PASSWORD |
+---------+------+-------------------------------------------+
| newuser | % | *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)
```

Expand Down
49 changes: 0 additions & 49 deletions v2.1/reference/sql/statements/show-create-user.md

This file was deleted.

1 change: 0 additions & 1 deletion v2.1/reference/sql/statements/show-grants.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ This statement is understood to be fully compatible with MySQL. Any compatibilit

## See also

* [SHOW CREATE USER](/v2.1/reference/sql/statements/show-create-user.md)
* [GRANT](/v2.1/reference/sql/statements/grant-privileges.md)