0

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

SQL
SELECT User FROM mysql.user;

output

+-------+
| User  |
+-------+
| root  |
+-------+
| user2 |
+-------+
add comment
Suggest a different solution or add another example