9951 explained code solutions for 126 technologies


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

Edit this code on GitHub