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 5 years have passed since last update.

mysqlユーザーの削除

Posted at

1.ユーザーからrevokeで権限を剥奪

revoke
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_name

2.drop userでユーザーを削除

drop
drop user user_name;

下記ではうまくいかないことがある。

delete
DELETE FROM mysql.user WHERE user='user_name';
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?