Suraj Tripathi
Suraj Tripathi

Reputation: 114

Taking mysql backup using .bat and taskscheduler failed run viataskscheduler

I was create a "export.bat" and put these line of code

 @ECHO OFF
 C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe --user=root --host=localhost --password=mind --protocol=tcp --port=3306 --default-character-set=utf8 --single-transaction=TRUE --routines --events --no-data "db_ows" > ows_back.sql

when direct run its working fine.

But i was trying with Task Scheduler on WIndows Server 2012, its failed. The action setting of task scheduler are as follows.

enter image description here

Upvotes: 0

Views: 903

Answers (1)

Suraj Tripathi
Suraj Tripathi

Reputation: 114

I changee the action settings In Task Scheduler Action Tab

enter image description here

It works.

Upvotes: 3

Related Questions