This is how you can rename a database in cPanel.
1. Log in to your cPanel account.
2. In the Databases section, click on MySQL Databases.
3. Under Current Databases, you can see a list of all your databases.
Locate the Database and then click on Rename.
4. Change the database name and click on Proceed.
That's all. You have just renamed your database in cPanel.