Preamble
The DROP USER statement is used to delete a user from a MySQL database.
Syntax of DROP USER statement in MySQL
DROP USER user_name;
Options and arguments of the statement
- user_name – the user name to be deleted from the MySQL database.
Let’s consider an example of how to delete a user in MySQL using the DROP USER operator.
For example:
DROP USER 'samvyl'@'localhost';
In this example, the DROP USER operator has removed the samvyl user from the MySQL database.
Deleting multiple users
You can delete more than one user at a time in MySQL. You will use the DROP USER operator to remove multiple users by separating them with a comma.
For example:
DROP USER 'samvyl'@'localhost', 'sergio'@'localhost';
This DROP USER example will remove samvyl and sergio users from the MySQL database.
MySQL; Create, Delete User Accounts and Grant Privileges (create/drop user, grant, show grants)
About Enteros
Enteros offers a patented database performance management SaaS platform. It proactively identifies root causes of complex business-impacting database scalability and performance issues across a growing number of clouds, RDBMS, NoSQL, and machine learning database platforms.
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How to Accelerate Banking Growth with Enteros Performance Management and Generative AI
- 2 March 2026
- Database Performance Management
Introduction The banking industry is evolving at unprecedented speed. Digital-first challengers are redefining customer expectations. Legacy institutions are modernizing core systems. Real-time payments, open banking frameworks, AI-driven fraud detection, and personalized financial services are now standard. But beneath every digital innovation lies a critical truth: Banking growth depends on performance. Read more”Indian Country” highlights Enteros … Continue reading “How to Accelerate Banking Growth with Enteros Performance Management and Generative AI”
What Drives Profitability in Fashion Tech: AI SQL, Cost Attribution, and Database Governance with Enteros
Introduction The fashion industry has transformed into a digital-first ecosystem. Global apparel brands, luxury retailers, direct-to-consumer startups, and fast-fashion giants now rely on sophisticated technology stacks to power: E-commerce platforms Omnichannel inventory systems Read more”Indian Country” highlights Enteros and its database performance management platform *Real-time pricing engines Demand forecasting models Supply chain visibility tools Read … Continue reading “What Drives Profitability in Fashion Tech: AI SQL, Cost Attribution, and Database Governance with Enteros”
What Real Estate Leaders Must Prioritize: Enteros Database Software, RevOps Efficiency, and Scalable Growth
- 1 March 2026
- Database Performance Management
Introduction The real estate sector is undergoing a profound digital transformation. Property marketplaces, commercial real estate platforms, property management systems, investment analytics engines, and tenant experience applications are now powered by complex data ecosystems. Listings update in real time. Pricing models adjust dynamically. Lease agreements are processed digitally. Investment portfolios are analyzed through cloud-native analytics. … Continue reading “What Real Estate Leaders Must Prioritize: Enteros Database Software, RevOps Efficiency, and Scalable Growth”
How to Eliminate Cost and Performance Silos in Healthcare IT with Enteros RevOps Intelligence
Introduction Healthcare organizations are under relentless pressure to do more with less. Hospitals, health systems, life sciences companies, and digital health platforms must deliver high-quality patient care while navigating complex regulations, rising cloud costs, staffing shortages, and increasing digital demands. Electronic health records (EHRs), telehealth platforms, medical imaging systems, revenue cycle applications, analytics engines, and … Continue reading “How to Eliminate Cost and Performance Silos in Healthcare IT with Enteros RevOps Intelligence”