Skip to main content

How to Delete a MySQL Database or Database User

You can remove a MySQL database or a specific database user from your cPanel account. This action is permanent and will result in the loss of all data contained within the deleted database or the removal of the user's access to all databases.

You can remove a MySQL database or a specific database user from your cPanel account. This action is permanent and will result in the loss of all data contained within the deleted database or the removal of the user's access to all databases.

Warning: Deleting a database is permanent. All tables, records, and data within that database will be destroyed and cannot be recovered unless you have a current backup.

Before you begin

You will need:

  • A cPanel account with the appropriate permissions to manage databases.

  • The specific name of the database or user you intend to delete.

Delete a MySQL Database

  1. Log in to your cPanel account.

  2. Locate the Databases section and select MySQL® Databases.

  3. Scroll down to the Current Databases section.

  4. Find the database you wish to remove in the list.

  5. Click the Delete icon next to that database.

  6. Confirm the deletion when prompted.

Delete a MySQL User

  1. Log in to your cPanel account.

  2. Locate the Databases section and select MySQL® Databases.

  3. Scroll down to the Current Users section.

  4. Find the user you wish to remove from the list.

  5. Click the Delete icon next to that user.

  6. Confirm the deletion when prompted.

Confirm the result

  • The database or user will no longer appear in the list of available items in the MySQL® Databases interface.

  • If you deleted a database, any website or application connected to that specific database will no longer function.

  • If you deleted a user, that user will no longer be able to log in or access any databases.

Limitations

Deleting a database or user is an irreversible action. If you only intended to change a password or rename a database, do not use the delete function.

Did this answer your question?