1
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 1 year has passed since last update.

MySQLでユーザーの権限設定SQL

1
Last updated at Posted at 2024-03-23

やり方

GRANT 権限の種類 ON スキーマー名.テーブル名 TO 'ユーザー名'@'ホスト名'

既に別の権限が付与されている場合

例えばSELECT権限 のみ 付与されている場合、下記SQLを流すと
ユーザーにはSELECTとINSERTの両方の権限が与えられます。

GRANT INSERT ON スキーマー名.テーブル名 TO 'ユーザー名'@'ホスト名'

上書きではなく、追記 です。

参考サイトさん

バージョン

Microsoft Windows [Version 10.0.19045.4170]
MySQL 5.7.38-log

1
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
1
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?