Hi, I have successfully used the data export tool as described on the export tool page.
(Using Mac OS X 10.8.4)
However, I'm trying to get it to link to an external SQL database that resides on a hostpapa web server. I am having trouble with the database url that is entered into the "--export" section of the query string (in BOLD below)
commcare-export --output-format sql --output json:mysql://[server-address]:3306/[database-name]?user=[user-name]&password=[db-password] --project [project-name] --query /Users/Ben/Downloads/sale.xlsx
Everything else in the above string works as I have successfully exported to .xlsx format and to SQL format (into SQLite3) on my local machine.
However, when I run the above command, it comes back with this error:
[1] 565
-bash: --project: command not found
Bens-MacBook-Pro:~ Ben$ usage: Output a customized export of CommCareHQ data.
commcare-hq-export: error: argument --project is required
Again, I know that the project name I have entered is correct. So I'm assuming it's something to do with the db url address. However, I know all the details for the db (e.g. server name, port, password, username) are correct as I have separately used mySQL from terminal to connect to the database using the same details.
Any help on this would be much appreciated.
Cheers
Ben