Databases: Delete MySQL User
Overview
There are two types of deleting users. One way is to delete a user from a database. The other type is to delete a user permanently.
Delete A User From The Database
Steps
- When the page loads, you will see a table containing the following information, split into five columns:
- Database - This entry will be the database name you created in Step 1 above.
- Size - This entry will be the size of the database you created in Step 1 above.
- Users - This entry will be the users in the database.
- Actions - You have once choice:
- Delete Database - Click on this link to delete a database.
- First find the database you want to delete the user from in the "Database" column. Then find the user you want to delete from the "Username" column.
- Next, click on the x in a circle icon.
- You will see the following confirmation statement:
- "Are you sure you wish to remove USERNAME User from the database DATABASE?"
- Click on the Yes button.
- Then click on the Go Back link.
The user you deleted should no longer be associated with the database you chose in Step 2 above.
Delete A User Permanently
Steps
- There will be a two-column table containing the "Users" and "Delete" column. Find the user you want to delete from the system and click on the x in a circle icon.
- You will see the following statement:
- "Are you sure you wish to permanently remove the USERNAME User?"
- Click on the Yes button.
- You will see the following statement:
- "Deleted the USERNAME."