{"id":1123,"date":"2010-07-19T22:07:57","date_gmt":"2010-07-19T15:07:57","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=1123"},"modified":"2010-07-19T22:07:57","modified_gmt":"2010-07-19T15:07:57","slug":"mysqldump-skip-lock-tables","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=1123","title":{"rendered":"mysqldump skip-lock-tables"},"content":{"rendered":"<p><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/09\/mysql.jpeg\" rel=\"lightbox[1123]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-1128\" title=\"mysql\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/09\/mysql.jpeg\" alt=\"\" width=\"111\" height=\"111\" \/><\/a>During dump the database for backups this morning, I face some LOCK TABLES annoying problem. Dealt with this before but nothing came up from memory.<\/p>\n<p>{code}[root@www tempbup]# mysqldump -uroot -p axioo9 &gt; axioo9.sql<br \/>\nEnter password:<\/p>\n<p>mysqldump: Got error: 29: File &#8216;.\/axioo9\/traveler_comprofiler_lists.MYD&#8217; not found (Errcode: 24) when using LOCK TABLES<\/p>\n<p>{\/code}<\/p>\n<p style=\"text-align: justify;\">At first I thought this was cause by table being use or permission problem, but stoping all services and chown the mysql folder doesn&#8217;t change anything. So I come up by investigating myql bible for half an hour or so, and the solution is pretty easy :<\/p>\n<p>{code}[root@www tempbup]# mysqldump &#8211;skip-lock-tables -uroot -p axioo9 &gt; axioo9.sql<br \/>\nEnter password:<br \/>\n[root@www tempbup]#{\/code}<\/p>\n<p style=\"text-align: justify;\">Checked with mysqlcheck and importing for real production server the dump result was good. Need to document this somewhere before I forgot and have to read that bible again &#8230;<\/p>\n<div class=\"iblogger-footer\">\n<p style=\"text-align: right; font-size: 10px;\">[Posted with iPhone]<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>During dump the database for backups this morning, I face some LOCK TABLES annoying problem. Dealt with this before but nothing came up from memory. {code}[root@www tempbup]# mysqldump -uroot -p axioo9 &gt; axioo9.sql Enter password: mysqldump: Got error: 29: File &#8216;.\/axioo9\/traveler_comprofiler_lists.MYD&#8217; not found (Errcode: 24) when using LOCK TABLES {\/code} At first I thought this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1128,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,9],"tags":[162],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1123"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1123"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/1128"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}