The latest version of phpMyAdmin allows you to change the name of the database.
Keep in mind that when you change the name of a database, you will have to reconfigure user permissions and any scripts that you want to continue referencing this database.
Before You Begin
For cPanel: If you want the same database user to have access to the renamed database, you should take note of the username already assigned to the database, which may or may not be similar to the name of the current database.
- In cPanel, click on MySQL Databases.
- Scroll down to the Current Databases section of the page.
- Find the database you are about to rename, and take note or remember the database user already assigned to the database. You will need to know this for step 2.
- You can return to the cPanel home screen to begin Step 1.
Step 1: Renaming the Database
- From cPanel, click on phpMyAdmin. (It should open in a new tab.)
- Click on the database you wish to rename in the left hand column.
- Click on the Operations tab.
- Where it says “Rename database to:” enter the new database name.
- Click the Go button.
- When it asks you to want to create the new database and drop the old database, click OK to proceed. (This is a good time to make sure you spelled the new name correctly.)
- Once the operation is complete, click OK when asked if you want to reload the database.