0
0

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.

MySQL Tips

Last updated at Posted at 2020-08-16

ここらへんはGUIでもいいのではと思うところ

ユーザ管理関連

ユーザ一覧を表示する

> select user, host from mysql.user;

ユーザの作成

> CREATE USER '<username>'@'<hostname>';

権限の確認

> show grants for '<username>'@'<hostname>';

権限の付与

ローカル環境ではallでok

> grant all on <db>.* to '<username>'@'<hostname>';

汎用

rowとcolumnをpivotする

> SQL~~~~~~ \G
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?