MySQL Forums
Forum List  »  MySQL Shell

Re: MySQL Shell: Dump & Load: Benchmarks
Posted by: Anna Toropova
Date: September 16, 2020 07:24AM

I've read your articles about new dump utils. I could make dump-instance but can't make dump-schemas
This command is good, I get dump in bookstack directory:
mysqlsh login@localhost --password=password -e 'util.dumpSchemas(["bookstackdb"], "bookstack")'

But I'd like to use full API command. I try:
mysqlsh login@localhost --password=password -- util dump-schemas ["bookstackdb"] bookstack

and get the error:
ERROR: Util.dumpSchemas: Argument #1 is expected to be an array

How can I use arguments for one database bookstackdb or maybe several databases in API command?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL Shell: Dump & Load: Benchmarks
272
September 16, 2020 07:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.