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)
⇒ Rename an Existing User Account in MySQL
⇐ Deleting a User Account in MySQL
2017-12-13, 2332🔥, 0💬
Popular Posts:
How To Connect the Oracle Server as SYSDBA in Oracle? This is Step 4. The best way to connect to the...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...