Remove an account from the server.
Section: user management
Drop a user
sql
sql
DROP USER IF EXISTS 'old_user'@'%';Explanation
Use with care because dropping a user removes its login access immediately.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing user management