Collections:
Listing All User Accounts in MySQL
How To List All Existing User Accounts in MySQL?
✍: FYIcenter.com
MySQL stores all existing user accounts in a table called "mysql.user". If you want see all user accounts, you can use the "SELECT" command as shown in the tutorial exercise below:
>cd \mysql\bin >mysql -u root -pretneciyf mysql mysql> CREATE USER dba IDENTIFIED BY 'iyf'; Query OK, 0 rows affected (0.02 sec) mysql> SELECT User, Password, Shutdown_priv FROM mysql.user; +------+-------------------------------------------+-----+ | User | Password | ... | +------+-------------------------------------------+-----+ | root | *3735F1D8464342BA852E10101E55E422EBAAAF35 | Y | | dba | *446BD97F308FBA0B9CBDC962C2842AD338BCE59E | N | +------+-------------------------------------------+-----+ 2 rows in set (0.03 sec)
Â
⇒Managing User Accounts and Access Privileges in MySQL
⇒⇒MySQL Database Tutorials
2017-12-13, 976👍, 0💬
Popular Posts:
What Are the Underflow and Overflow Behaviors on FLOAT Literals in SQL Server Transact-SQL? If you e...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...