mariadbHow to remove user from Mariadb?
To remove a user from MariaDB, you can use the DROP USER
command.
Example
DROP USER 'username'@'localhost';
This command will remove the user username
from the MariaDB server.
Code explanation
DROP USER
: This is the command used to remove a user from MariaDB.username
: This is the username of the user to be removed.localhost
: This is the host from which the user will be removed.
Helpful links
More of Mariadb
- How to get yesterday's date in Mariadb?
- What type to use for a year in Mariadb?
- How to get current year in Mariadb?
- How to use UUID in Mariadb?
- Mariadb partitioning example
- How to use XA transactions in Mariadb?
- How to work with XML in Mariadb?
- How to check version of Mariadb?
- How to list users in Mariadb?
See more codes...