title: 0x2 error in task scheduler windows 7 mysql
body: <p>I'm trying to do mysql batabase dump periodically through task scheduler. When I run the following query from command prompt, it gives me the dump. But, when I'm running through Task Scheduler, it's not working.</p>
  
  <p>Query</p>
  
  <pre><code>C:\xampp\mysql\bin\mysqldump.exe --user=root --password=root --host=localhost --database  gm &gt; E:\backupgmdb\gm_backup_%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.sql
  </code></pre>
  
  <p>Task Scheduler error - 
  0x2 error screenshot
  <a href="https://i.stack.imgur.com/DRdmG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DRdmG.jpg" alt="enter image description here"></a></p>
  
  <p>Task Action Definition Screen Print
  <a href="https://i.stack.imgur.com/QXSIm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QXSIm.jpg" alt="enter image description here"></a></p>