您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MySQL五个授权表的功能

2024/3/17 2:57:56发布12次查看
mysql.user select host,user,password from mysql.user; grant all privileges on *.* to monty@localhost identified by
mysql.user
display:
mysql.db
display:
query ok, 0 rows affected (0.00 sec)empty set (0.00 sec)query ok, 0 rows affected (0.00 sec)+-----------+-------+------+| host      | user  | db   |+-----------+-------+------+| localhost | monty | test |+-----------+-------+------+1 row in set (0.00 sec)
mysql.host\
#未测试
mysql.tables_priv
display:empty set (0.00 sec)
query ok, 0 rows affected (0.00 sec)
+-----------+------+------------+-------+
| host      | db   | table_name | user  |
+-----------+------+------------+-------+
| localhost | test | student    | monty |
+-----------+------+------------+-------+
1 row in set (0.00 sec)
query ok, 0 rows affected (0.00 sec)
mysql.columns_priv
display:empty set (0.00 sec)
query ok, 0 rows affected (0.00 sec)
+-----------+------+-------+------------+-------------+-------------+
| host      | db   | user  | table_name | column_name | column_priv |
+-----------+------+-------+------------+-------------+-------------+
| localhost | test | monty | student    | sno         | select      |
+-----------+------+-------+------------+-------------+-------------+
1 row in set (0.00 sec)
query ok, 0 rows affected (0.00 sec)

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product