{"id":805,"date":"2016-03-19T22:07:01","date_gmt":"2016-03-19T13:07:01","guid":{"rendered":"http:\/\/jose.mydns.jp\/wp\/?p=805"},"modified":"2016-03-19T22:07:01","modified_gmt":"2016-03-19T13:07:01","slug":"epgrec%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e5%86%8d%e6%a7%8b%e7%af%89%e2%87%92constructrecorder_categorytbl%e3%81%abid0%e3%81%af%e3%81%82%e3%82%8a%e3%81%be%e3%81%9b","status":"publish","type":"post","link":"http:\/\/jose.mydns.jp\/?p=805","title":{"rendered":"EPGREC\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u518d\u69cb\u7bc9\u21d2construct:Recorder_categoryTbl\u306bid=0\u306f\u3042\u308a\u307e\u305b\u3093"},"content":{"rendered":"<p>\u7a81\u7136\u3067\u3059\u304c\u3001epgrec\u3067\u5feb\u8abf\u306b\u9332\u753b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u7a81\u7136<br \/>\n\u9332\u753b\u6e08\u4e00\u89a7\u753b\u9762\u304c\u3001\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3067\u53c2\u7167\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\nconstruct:Recorder_categoryTbl\u306bid=0\u306f\u3042\u308a\u307e\u305b\u3093<br \/>\n\u4ee5\u4e0b\u4fee\u5fa9\u8a18\u9332\u3067\u3059\u304c\u3001\u7d50\u5c40epgrec\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u308a\u76f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u539f\u56e0\u8abf\u67fb\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff06\u30c6\u30fc\u30d6\u30eb\u306f\u3061\u3083\u3093\u3068\u3042\u308a\u307e\u3057\u305f\u3057<br \/>\n&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<br \/>\njose@jose&#45;desktop:~$ mysql &#45;u epgrec &#45;p<br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor.  Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 489<br \/>\nServer version: 5.5.41&#45;0ubuntu0.12.04.1 (Ubuntu)<br \/>\nCopyright (c) 2000, 2014, Oracle and\/or its affiliates. All rights reserved.<br \/>\nOracle is a registered trademark of Oracle Corporation and\/or its<br \/>\naffiliates. Other names may be trademarks of their respective<br \/>\nowners.<br \/>\nType &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<br \/>\nmysql> show databases;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Database           |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| information_schema |<br \/>\n| epgrec             |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n2 rows in set (0.17 sec)<br \/>\nmysql> use epgrec;<br \/>\nReading table information for completion of table and column names<br \/>\nYou can turn off this feature to get a quicker startup with &#45;A<br \/>\nDatabase changed<br \/>\nmysql> show tables;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Tables_in_epgrec     |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Recorder_categoryTbl |<br \/>\n| Recorder_channelTbl  |<br \/>\n| Recorder_keywordTbl  |<br \/>\n| Recorder_logTbl      |<br \/>\n| Recorder_programTbl  |<br \/>\n| Recorder_reserveTbl  |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n6 rows in set (0.00 sec)<br \/>\n\u30c6\u30fc\u30d6\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u3068\u4fee\u5fa9\u3092\u8a66\u307f\u307e\u3057\u305f\u304c<br \/>\nmysql> check table Recorder_categoryTbl;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Table                       | Op     | Msg_type | Msg_text |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45; &#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| pt2_db.Recorder_categoryTbl | repair | status   | OK       |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45; &#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n1 row in set (1.24 sec)<br \/>\nok\u306e\u3088\u3046\u3067\u3059<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067id=0\u304c\u3069\u3053\u306b\u884c\u3063\u3066\u308b\u306e\u304b\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u304c<br \/>\n\u3042\u308a\u307e\u305b\u3093\u3057\u3001id=0\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30a4\u30f3\u30b5\u30fc\u30c8\u3057\u3066\u307f\u307e\u3057\u305f\u304c<br \/>\n\u6700\u7d42\u30ec\u30b3\u30fc\u30c9\u4ee5\u964d\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3060\u3051\u3067id=0\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<br \/>\nmysql> select id from Recorder_categoryTbl where id = 1;<br \/>\n+&#45;&#45;&#45;&#45;+<br \/>\n| id |<br \/>\n+&#45;&#45;&#45;&#45;+<br \/>\n|  1 |<br \/>\n+&#45;&#45;&#45;&#45;+<br \/>\n1 row in set (0.02 sec)<br \/>\nmysql> insert into Recorder_categoryTbl(id) values(0);Query OK, 1 row affected (0.01 sec)<br \/>\nmysql> select id name_jp from Recorder_categoryTbl where id < 5;\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+\n| name_jp |\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+\n|       1 |\n|       2 |\n|       3 |\n|       4 |\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+\n4 rows in set (0.01 sec)\nmysql> select id name_jp from Recorder_categoryTbl where id ;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| name_jp |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n|       1 |<br \/>\n|       2 |<br \/>\n|       3 |<br \/>\n|       4 |<br \/>\n|       5 |<br \/>\n|       6 |<br \/>\n|       7 |<br \/>\n|       8 |<br \/>\n|       9 |<br \/>\n|      10 |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n10 rows in set (0.00 sec)<br \/>\nmysql> delete from Recorder_categoryTbl where id = 9;<br \/>\nQuery OK, 1 row affected (0.00 sec)<br \/>\nmysql> insert into Recorder_categoryTbl(id) values(0);<br \/>\nQuery OK, 1 row affected (0.00 sec)<br \/>\n\u7d50\u5c40epgrec\u306eDB\u304c\u58ca\u308c\u305f\u3068\u5224\u65ad\u3057\u3066\u4f5c\u308a\u76f4\u3057\u307e\u3057\u305f<br \/>\n$ mysql &#45;u &#45;root &#45;p<br \/>\nmysql>drop database epg;<br \/>\nmysql>create database epg;<br \/>\nmysql>grant all privileges on *.* to [username]@localhost identified by &#8216;[Password]&#8217;;<br \/>\nmysql>exit;<br \/>\n\u2193\u3092\u5b9f\u884c<br \/>\nhttp:\/\/\u30db\u30b9\u30c8\u540d\/epgrec\/install\/step1.php<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4fee\u5fa9\u5f8c\u306b\u6b63\u5e38\u72b6\u614b\u306b\u623b\u3063\u305f\u306e\u3092\u78ba\u8a8d\u3057\u3066DB\u3068\u30c6\u30fc\u30d6\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u305f\u304c\u3001<br \/>\nid=0\u306f\u7d50\u5c40\u7121\u3044\u3088\u3046\u3067\u3059\uff1f\uff1f<br \/>\nmysql> use epgrec;<br \/>\nReading table information for completion of table and column names<br \/>\nYou can turn off this feature to get a quicker startup with &#45;A<br \/>\nDatabase changed<br \/>\nmysql> show tables;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Tables_in_epgrec     |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| Recorder_categoryTbl |<br \/>\n| Recorder_channelTbl  |<br \/>\n| Recorder_keywordTbl  |<br \/>\n| Recorder_logTbl      |<br \/>\n| Recorder_programTbl  |<br \/>\n| Recorder_reserveTbl  |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n6 rows in set (0.00 sec)<br \/>\nmysql> select id name_jp from Recorder_categoryTbl where id ;<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n| name_jp |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n|       1 |<br \/>\n|       2 |<br \/>\n|       3 |<br \/>\n|       4 |<br \/>\n|       5 |<br \/>\n|       6 |<br \/>\n|       7 |<br \/>\n|       8 |<br \/>\n|       9 |<br \/>\n+&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;+<br \/>\n9 rows in set (0.00 sec)<br \/>\nmysql><br \/>\n\u7d50\u5c40\u539f\u56e0\u306f\u4e0d\u660e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7a81\u7136\u3067\u3059\u304c\u3001epgrec\u3067\u5feb\u8abf\u306b\u9332\u753b\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u7a81\u7136 \u9332\u753b\u6e08\u4e00\u89a7\u753b\u9762\u304c\u3001\u4e0b\u8a18\u30b3\u30e1\u30f3\u30c8\u3067\u53c2\u7167\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 construct:Recorder_categoryTbl\u306bid=0\u306f\u3042\u308a\u307e\u305b\u3093 \u4ee5\u4e0b\u4fee\u5fa9\u8a18 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/jose.mydns.jp\/?p=805\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;EPGREC\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u518d\u69cb\u7bc9\u21d2construct:Recorder_categoryTbl\u306bid=0\u306f\u3042\u308a\u307e\u305b\u3093&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-805","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=805"}],"version-history":[{"count":0,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions"}],"wp:attachment":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}