Nick Jenkins wrote:
[snip]
I don't understand the "Expected file stream,
got SQL connection?"
error ... surely an SQL connection in this case is a good thing?
You need to put the --output:mysql *before* the --format=sql:1.4.
The structure of arguments on mwdumper is such that each output group is
headed by an "--output" specifier. For convenience, --output can be left
out of the first group, implying text sent to stdout.
So --format=sql:1.4 --output=mysql means you're giving it two output groups:
1) SQL in 1.4 schema on stdout
2) XML on a MySQL JDBC connection
The second set fails because you can only send SQL to MySQL, not XML.
A half-assed attempt at a formal description of the parameters:
params = [<outputgroup>...] [<inputfile>]
outputgroup = [<output>] [<format>] [<filter>...]
output = --output=<outputtype>[:<data>]
format = --format=<formattype>[:<data>]
filter = --filter=<filtertype>[:<data>]
I realize it's a little complicated, but it's meant to be able to do
multiple output streams with different filters and compression options,
so it's of necessity. When I finish the GUI front-end it should be a
little more 'one-click' friendly. :)
-- brion vibber (brion @
pobox.com)