{"id":221,"date":"2009-11-12T09:04:35","date_gmt":"2009-11-12T09:04:35","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=221"},"modified":"2014-06-24T18:59:21","modified_gmt":"2014-06-24T18:59:21","slug":"scheduled-backup-mysql-administrator-windows-scheduler-odd","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/scheduled-backup-mysql-administrator-windows-scheduler-odd","title":{"rendered":"Scheduled Backup MySQL Administrator &#038; Windows Scheduler \u2013 Odd"},"content":{"rendered":"<p>Creating scheduled backup using administrator is an easy task.<\/p>\n<p>Follow the GUI and you&#8217;re done. But I observed something different!<\/p>\n<p><strong>MySQL Version: <\/strong>5.0.83 Community<\/p>\n<p><strong>MySQL Administrator: <\/strong>1.2.17<\/p>\n<p><strong>Machine: <\/strong>Intel P4, Windows XP, Enough RAM \ud83d\ude42<\/p>\n<p><strong>Logs: <\/strong>General, Error &amp; irrelevant here though Slow query.<\/p>\n<p><strong>Prologue: <\/strong>Administrator performs scheduled backup properly in normal scenario.<\/p>\n<p><strong>What I was watching:<\/strong> Administrator&#8217;s Auto-Backup behaviour with windows Scheduler service and tracing steps out.<\/p>\n<p><strong>Some facts:<\/strong><\/p>\n<p>MySQL Administrator stores backup project&#8217;s details in &lt;PROJECT-NAME&gt;.mbd files in xml format under directory<\/p>\n<address>C:\\Documents and Settings\\&lt;USER-NAME&gt;\\Application Data\\MySQL<\/address>\n<address> <\/address>\n<p>Along with it it also adds a scheduled task with name &lt;PROJECT-NAME&gt;.<\/p>\n<address>&#8220;C:\\Program Files\\MySQL\\MySQL Tools for 5.0\\MySQLAdministrator.exe&#8221; &#8220;-UDC:\\Documents and Settings\\&lt;USER-NAME&gt;\\Application Data\\MySQL\\&#8221; &#8220;-cbkupconn&#8221; &#8220;-bp1&#8221; &#8220;-btC:\\&#8221; &#8220;-bx1&#8221;<\/address>\n<p>If you find trouble getting automated backup work, make sure your Scheduler [Task Scheduler] service is running.<\/p>\n<p><em>Start &gt;&gt; Run &gt;&gt; services.msc<\/em><\/p>\n<p>MySQL Administrator does not log these events unless specified explicitly.<\/p>\n<p>To enable logging:<\/p>\n<address>Menu: Tools &gt;&gt; Options<\/address>\n<address>Category: Administrator<\/address>\n<address>In Backup Section:<\/address>\n<ul>\n<li>\n<address>Tick checkbox &#8220;Write log file for scheduled backup&#8221; and spcify path.<\/address>\n<\/li>\n<li>\n<address>Tick checkbox &#8220;Log Row Processing Progress&#8221; and specify number.<\/address>\n<\/li>\n<\/ul>\n<address> <\/address>\n<p>To view Scheduled task&#8217;s log you may:<\/p>\n<address>Start\u00a0 &gt;&gt;\u00a0 program\u00a0 &gt;&gt;\u00a0 accessasory\u00a0 &gt;&gt;\u00a0 System Tools\u00a0 &gt;&gt;\u00a0 Scheduled Tasks<\/address>\n<address>Click on menu: Advance &gt;&gt; View Logs<\/address>\n<address> <\/address>\n<address>Or<\/address>\n<address> <\/address>\n<address>Open Windows\/SchedLgU.Txt<\/address>\n<p style=\"text-align: left; \">\n<p><strong>My observation:<\/strong><\/p>\n<p>Whenever I keep task scheduler Enabled &amp; Started, I could see updates in logs of Scheduled task and also in Event Viewer. For backups you get logged in General Query Logs.<\/p>\n<p>But with my surprise I&#8217;m not able to get the MySQL Administrator&#8217;s log file (with default setting).<\/p>\n<p>Also if scheduler is Disabled &amp; Stopped, Nothing is getting logged. Neigher in logs of Scheduled task nor in Event Viewer.<\/p>\n<p>And again there is no MySQL Administrator&#8217;s log file getting generated. Also this even is not getting logged in to Error Log!<\/p>\n<address>Later I read the bug: http:\/\/bugs.mysql.com\/bug.php?id=28821<\/address>\n<p>I tried to change the path from default, C:\\ to D:\\SOMEDIRECTORY. And with my surprise MySQL Administrator logged successfully executed scheduled tasks to log.<\/p>\n<p>Next observation after disabling Scheduler(Task Scheduler) Windows Service I made was, backup had failed but Administrator haven&#8217;t logged it into C:\\MySQLAdminBackupLog.txt !!<\/p>\n<p>Even now I have &#8220;Log file path&#8221; as D:\\ and I&#8217;m reading log updates in C:\\MySQLAdminBackupLog.txt. There is nothing in D:\\!<\/p>\n<p>Is it the problem with way Administrator writes to .mdb file (bug?) or am I doing something wrong!<\/p>\n<p><script charset=\"utf-8\" type=\"text\/javascript\" src=\"http:\/\/ws.amazon.com\/widgets\/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822\/US\/httpkedarnitt-20\/8001\/29266fe4-10b4-4f4a-bf7f-c5dc0ffee5a2\"> <\/script> <noscript><a HREF=\"http:\/\/ws.amazon.com\/widgets\/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fhttpkedarnitt-20%2F8001%2F29266fe4-10b4-4f4a-bf7f-c5dc0ffee5a2&#038;Operation=NoScript\">Amazon.com Widgets<\/a><\/noscript><\/p>\n","protected":false},"excerpt":{"rendered":"Creating scheduled backup using administrator is an easy task. Follow the GUI and you&#8217;re done. But I observed something different! MySQL Version: 5.0.83 Community MySQL Administrator: 1.2.17 Machine: Intel P4,&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[12,15,427,255,256,125],"class_list":{"0":"post-221","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-mysql","7":"category-mysql-articles","8":"tag-administrator","9":"tag-backup","10":"tag-mysql","11":"tag-scheduled-backup","12":"tag-scheduled-task","13":"tag-windows"},"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":2,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":1975,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions\/1975"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}