1 实战演练如下:
2 mysql> CREATE USER 'cuixiaozhao'@'localhost' IDENTIFIED BY 'Ab123456!@#$';
3
4 Query OK, 0 rows affected (0.00 sec)
5
6 mysql> RENAME USER 'cuixiaozhao'@'localhost' TO 'zhaoxiaocui'@'localhost';
7 Query OK, 0 rows affected (0.00 sec)
8
9 mysql> SET PASSWORD FOR 'zhaoxiaocui'@'localhost' = PASSWORD('$#@!654321bA');
10 Query OK, 0 rows affected, 1 warning (0.00 sec)
11
12 mysql> DROP USER 'zhaoxiaocui'@'localhost';
13 Query OK, 0 rows affected (0.00 sec)
14
15 mysql>