I think you should create a new database and rename the tables so they will be in the new database, and the old one can be dropped afterwards.
Find more here: https://blog.marceloaltmann.com/how-to-rename-a-database-in-mysql/
But basically something like:
CREATE DATABASE my_new_database;
RENAME TABLE my_old_database.tbl_name TO my_new_database.tbl_name;
DROP DATABASE my_old_database;
Using the script from the link above will allow you to use all your tables, so this can be done almost automatically.
(I mean this: SELECT CONCAT('RENAME TABLE ', GROUP_CONCAT( table_schema,'.',table_name, ' TO ','new_schema.',table_name,' '),';') as stmt FROM information_schema.TABLES WHERE table_schema LIKE 'oldSchema' GROUP BY table_schema
)