I want to use mysqlsh to perform the following operations:
mysqldump -R DATABASE > DATABASE.sql
)mysql --database=NEWDATABASE < DATABASE.sql
�P粉7647859242024-03-27 10:18:17
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.