MySQL: Remove User

  • user notice: The _custom_breadcrumbs_get_breadcrumb() function called token replacement with an array rather than a string for $text in /mnt/webc/60/17/52309417/htdocs/drupal/sites/all/modules/token/token.module on line 263.
  • user notice: The _custom_breadcrumbs_get_breadcrumb() function called token replacement with an array rather than a string for $text in /mnt/webc/60/17/52309417/htdocs/drupal/sites/all/modules/token/token.module on line 263.
  • Replace {db} with the name of the database.
  • Replace {user} with the name of the user.

Remove User

DROP USER '{user}'@'%';

Remove User and Database

Usually, {user} == {db}

DROP USER '{user}'@'%';
DROP DATABASE '{db}';