MySQL/MariaDB 계정 삭제

1 개요[ | ]

MySQL/MariaDB 계정 삭제
DROP USER
DROP USER '계정'@'접속대역';

2 실행예시[ | ]

MariaDB [(none)]> SELECT User, Host FROM mysql.user WHERE User='rootuser' AND Host='%';
+----------+------+
| User     | Host |
+----------+------+
| rootuser | %    |
+----------+------+
1 row in set (0.00 sec)

MariaDB [(none)]> DROP USER 'rootuser'@'%';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> SELECT User, Host FROM mysql.user WHERE User='rootuser' AND Host='%';
Empty set (0.00 sec)

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}