MySQL如何查询用户权限的两种方法

  

今天小编给大家分享的是MySQL如何查询用户权限的两种方法,相信很多人都不太了解,为了让大家更加了解,所以给大家总结了以下内容,一起往下看吧。一定会有所收获的哦。

介绍两种查看MySQL用户权限的两种方法

<强> 1,使用MySQL赠款命令

mysql>显示username@localhost拨款;   + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +   |拨款root@localhost |   + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +   |>的所有特权授予mysql>从mysql选择*。用户在用户=& # 39;根# 39;和主机=& # 39;localhost # 39;\ G;   * * * * * * * * * * * * * * * * * * * * * * * * * * * 1。行* * * * * * * * * * * * * * * * * * * * * * * * * * *   主持人:localhost   用户:根   密码:* * * * * * * * * * * * * * * * * * * * * *   Select_priv: Y   Insert_priv: Y   Update_priv: Y   Delete_priv: Y   Create_priv: Y   Drop_priv: Y   Reload_priv: Y   Shutdown_priv: Y   Process_priv: Y   File_priv: Y   Grant_priv: Y   References_priv: Y   Index_priv: Y   Alter_priv: Y   Show_db_priv: Y   Super_priv: Y   Create_tmp_table_priv: Y   Lock_tables_priv: Y   Execute_priv: Y   Repl_slave_priv: Y   Repl_client_priv: Y   Create_view_priv: Y   Show_view_priv: Y   Create_routine_priv: Y   Alter_routine_priv: Y   Create_user_priv: Y   Event_priv: Y   Trigger_priv: Y   Create_tablespace_priv: Y   ssl_type:   ssl_cipher:   x509_issuer:   x509_subject:   max_questions: 0   max_updates: 0   max_connections: 0   max_user_connections: 0   插件:mysql_native_password   authentication_string:   password_expired: N   1行集(0.01秒)

以上就是MySQL如何查询用户权限的两种方法的详细内容了,看完之后是否有所收获呢?如果想了解更多相关内容,欢迎来行业资讯!

MySQL如何查询用户权限的两种方法