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
- What type to use for a year in Mariadb?
- How to work with XML in Mariadb?
- How to use variables in Mariadb?
- How to list users in Mariadb?
- Mariadb procedure example
- How to get current year in Mariadb?
- How to get yesterday's date in Mariadb?
- How to change wait_timeout in Mariadb?
- How to use XA transactions in Mariadb?
- How to use xtrabackup in Mariadb?
See more codes...