How to get a list of user accounts using the command line in MySQL?

前端 未结 15 1917
自闭症患者
自闭症患者 2020-12-22 14:35

I\'m using the MySQL command line utility and can navigate through a database. Now I need to see a list of user accounts. How can I do this?

I\'m using MySQL version

15条回答
  •  旧巷少年郎
    2020-12-22 14:45

    I found his one more useful as it provides additional information about DML and DDL privileges

    SELECT user, Select_priv, Insert_priv , Update_priv, Delete_priv, 
           Create_priv, Drop_priv, Shutdown_priv, Create_user_priv 
    FROM mysql.user;
    

提交回复
热议问题