1 |
SELECT User,Host FROM mysql.user; |
1 |
SHOW GRANTS FOR 'bloguser'@'localhost'; |
1 |
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'bloguser'@'localhost'; |
1 |
DROP USER 'bloguser'@'localhost'; |
A note about DROP USER sql command to delete or remove a MySQL/MariaDB user account
1 2 |
DROP USER foo; DROP USER IF EXISTS bar; |
ที่มา : https://www.cyberciti.biz/faq/how-to-delete-remove-user-account-in-mysql-mariadb/