Maybe I\'m not seeing something here but WHY would this command line work perfectly fine and provide a result set when run on a LINUX command line but when executed from a W
Windows command line does not recognize '
as a quote character, so your statement parameter becomes SELECT
(truncated at the 1st space).
You must use "
instead, as Heena Hussain suggested.
Can you please try this...
C:\>mysql -u <userid> -p<password> -e "SHOW VARIABLES LIKE '%version%'" –-xml
and this...
mysql -u db_user -p db_name --xml -e "SELECT * FROM table_name" > table_name.xml