For InnoDB, the following seems to work: create the new empty database, then rename each table in turn into the new database:ide
You will need to adjust the permissions after that.it
same for myisamio