3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

miriwo 技術何でもAdvent Calendar 2020

Day 11

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

Last updated at Posted at 2020-12-11

目的

  • MySQLのユーザ一覧を表示する方法をまとめる

前提条件

前提情報

  • 筆者はMacに立てたMySQLで本記事の内容を検証している。(rootユーザのパスワード入力を求められたら入力しEnterを押下する。)

詳細

  1. 下記コマンドを実行してターミナルからMySQLにログインする。

    $ mysql -u root -p
    
  2. 下記SQLを実行する。

    select User from  mysql.user;
    
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?