cPanel can rename a MySQL or MariaDB database when you need a clearer name. Applications using the old name must be updated as part of the same change to avoid connection failures.

Prepare the change

Back up the database and verify the copy. Record the current full database name, assigned users and applications that use it. Arrange a maintenance period: cPanel terminates active connections during the rename.

Check website configuration, scheduled tasks, backup scripts and external applications. Do not assume WordPress is the only dependency.

Rename through cPanel

  1. Log in to cPanel and open Databases > Manage My Databases. Older versions call this MySQL Databases.
  2. Under Current Databases, locate the intended database and select Rename.
  3. Enter the new name, retaining any account prefix the interface requires.
  4. Review the confirmation and select Proceed.
  5. Wait for completion, review any warnings and record the full name shown in the database list.

Update and verify applications

Update each application’s database-name setting. For WordPress, this is DB_NAME in wp-config.php; use the full name shown by cPanel.

Check assigned user permissions, then test the application and scheduled tasks. Renaming alone does not change a database password or provide additional security. Use cPanel’s supported action rather than an ad hoc rename in phpMyAdmin so that account mapping remains consistent.