目次

MariaDB のユーザー一覧を表示する

MariaDB のユーザー一覧を表示する手順を紹介します。

手順

下記コマンドを実行して MariaDB のSQLコンソールを表示します。
mysql -u root -p
SQLのプロンプトで、下記のコマンドを実行します。
select host,user from mysql.user;



ユーザー一覧が表示されます。


表示結果例

MariaDB [(none)]> select host,user from mysql.user;
+----------------------+------+
| host                 | user |
+----------------------+------+
| %                    | root |
| 127.0.0.1            | root |
| ::1                  | root |
| localhost            | root |
| mailserver-centos-72 | root |
+----------------------+------+
5 rows in set (0.00 sec)

著者
iPentec.com の代表。ハードウェア、サーバー投資、管理などを担当。
Office 365やデータベースの記事なども担当。
最終更新日: 2016-09-28
作成日: 2016-09-02
iPentec all rights reserverd.