Hi I am using mysql 5.0.x
How do I rename a schema?
It's easy. Export the database to file, then import it again in workbench you can specify the name of the db there.
In workbench go to the Server tab, select Data Export. Select the DB you want to rename, select export to self contained file, and give the file a name. make sure you have Dump structure and Data selected. Hit start export.
In workbench go to the Server tab, select Data Import. Select Import from self contained file. Select the file you created. In the section titled Default Schema to be imported to click the new option. Enter the new name for the DB, then select it from the drop down. Hit Start Import.
Voila, new database with the name you want plus all the tables and data from the old one.