If you need to rename a database, the following guide can be followed, which shares how to complete this.
1. Start by logging into your cPanel account; If you're unsure of the URL, you can try https://mydomainname.com.au:2083 or access the domain via WHM directly:
2. In the 'Databases' tab, select 'MySQL Databases' as shown:
3. In the 'Current Databases' section, you can select the 'Rename' button along the line of the desired database:
4. Enter the chosen new name for the database and press 'Proceed' and your database will be renamed:
If the database is in production, you will need to update any website configuration files accordingly if the old name was referenced.