How do you rename a database linked to an existing, published php app like WordPress or OSCommerce?
- Back up your database.
- Create a new database with the new name you want in mySQL and assign a user.
- In phpMyAdmin go to Operations and use the "Copy database to:" option to move the structure and data to the new table by: typing the new name in the text field, de-selecting any check boxes that are on and choosing “Go”.
- Your new database should now be present in the drop down list of databases in phpMyAdmin.
- Back up your current app’s (WordPress or OSCommerce for example) config file.
- Change the information in the current config file to reflect the new database name and any username and password changes you may have made. Save with the same name.
- Upload/overwrite the config file on your server in the appropriate area for your app.
- Check to verify that your app works with the new setup by accessing your site.
- Once you feel clear that everything’s hooked up and happy with the new database information you can delete your old database (and users if you created new ones.)
Tags: mySQL | phpMyAdmin | renaming database | Wordpress

