About 23,300,000 results
Open links in new tab
  1. How to List All Users in a MySQL Database - phoenixNAP

    Sep 18, 2024 · Use the current_user() functions to get the details of the current MySQL user: SELECT current_user(); The command shows the user account that's in use and authenticated.

  2. How can I get a list of user accounts using the command line in MySQL ...

    Jul 16, 2009 · If you are referring to the actual MySQL users, try: select User from mysql.user;

  3. How to Show Users in MySQL - MySQL Tutorial

    List all users by querying from the user table of the mysql database. Use select current_user() to show the current user.

  4. MySQL: Show Users, Privileges and Passwords - ShellHacks

    Mar 23, 2017 · Show Users In MySQL. Show all MySQL users: mysql> SELECT user FROM mysql.user; List only unique user names: mysql> SELECT DISTINCT user FROM mysql.user; Show MySQL users and hosts they are allowed to connect from: mysql> SELECT user,host FROM mysql.user; Show MySQL users, their passwords and hosts: mysql> SELECT …

  5. How to see/get a list of MySQL/MariaDB users accounts

    May 15, 2024 · You need to use mysql command to get a list of MySQL or MaiaDB users accounts on the system. The user table stores username/password, user privileges, and all other information. In this quick tutorial, you will learn how to find out all MySQL and MariaDB users and the permissions granted to each user.

  6. MySQL “show users”: How to list the users in a MySQL/MariaDB …

    Jul 31, 2024 · To show the users in a MySQL or MariaDB database — i.e., the user accounts in the database — first log into your MySQL/MariaDB database as an administrative user using the mysql command line client (such as the root user), then run this MySQL query: mysql> select * from mysql.user;

  7. How do I view user accounts when logged into MySQL?

    Apr 4, 2015 · SELECT user FROM mysql.user; You may need to login as admin to perform the above query. If that is the case login as admin from terminal by using the following command:

  8. MySQL SHOW USERS: How to List All Users in a MySQL

    Aug 25, 2021 · Article explains different methods to show or list users in MySQL. Learn how to retrieve the list of users using MySQL workbench or command-line tool.

  9. MySQL SHOW USERS: List All Users in a MySQL Database - RoseHosting

    Apr 8, 2021 · Another way to see all users is to simply use the asterisk (*) wildcard when selecting fields from the user table. It should look like this: This will return all possible field information for each user.

  10. MySQL - Show Users: A Beginner's Guide - W3schools

    To view the list of users in MySQL, we use the SELECT statement on a special table called mysql.user. Here's how you do it: This command will show you a list of all users and their associated hosts. The 'Host' column tells you from which locations these users can connect. Let's break this down: SELECT: This tells MySQL we want to retrieve data.

  11. Some results have been removed
Refresh