1# Create a dump file for the database (logged via ssh):
2mysqldump -u [UserName] -p[Password] -R [DB_Name] > [DB_Name].sql
3# Create a new blank database by using the mysqladmin command:
4mysqladmin -u [UserName] -p[Pasword] create [New_DB_Name]
5# Import the dump file into the new database you created:
6mysql -u [UserName] -p[Password] [New_DB_Name] < [DB_Name].sql
7# Delete the old MySQL database name (optional):
8mysqladmin -u [Username] -p[Password] drop [DB_Name]