数据库
首页 > 数据库> > mysql命令最新

mysql命令最新

作者:互联网

 

查看授权

mysql> select user,host from mysql.user;
+--------+------------+
| user   | host       |
+--------+------------+
| root   | %          |
| root   | 127.0.0.1  |
| rep    | 172.16.0.% |
| rep    | 172.16.1.% |
| root   | ::1        |
|        | localhost  |
| backup | localhost  |
| root   | localhost  |
|        | mcw01      |
| root   | mcw01      |
+--------+------------+
10 rows in set (0.07 sec)

mysql> show grants for rep@'172.16.0.%';
+-------------------------------------------------------------------------------------------------------------------------+
| Grants for rep@172.16.0.%                                                                                               |
+-------------------------------------------------------------------------------------------------------------------------+
| GRANT REPLICATION SLAVE ON *.* TO 'rep'@'172.16.0.%' IDENTIFIED BY PASSWORD '*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9' |
+-------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

 

标签:+-------------------------------------------------------------------------------
来源: https://www.cnblogs.com/machangwei-8/p/15949006.html