Home > Database > Mysql Tutorial > MySQL五个授权表的功能

MySQL五个授权表的功能

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:07:58
Original
1273 people have browsed it

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)

    linux

    Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template