mysql把user和host组成二元组,构成一个用户,所以
1
2
3
4
5
6
7
|
MariaDB [(none)]> show grants for 'root'@'192.168.10.204';
+---------------------------------------------------------------------------------------------------------------------------+
| Grants for root@192.168.10.204 |
+---------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.10.204' IDENTIFIED BY PASSWORD 'xxx' |
+---------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
|