I want to use mysqlsh to perform the following operations:
- Dumps the complete schema of a given database (not just tables, but functions, triggers and everything related to this database schema, same as
mysqldump -R DATABASE > DATABASE.sql
)
- Load this complete schema into the brand new database I just created (something like
mysql --database=NEWDATABASE < DATABASE.sql
�
I think you can just use a text editor to edit the
.sql
file before trying to load it.This tool actually dumps the schema and imports it to a different MySQL instance, but keeps the schema name the same.